MailMessage

represent a mail message that can be sent via the MailService
Name Type Description

bounceAddress

String

set bounce address of this mail

from

String

set from address of this mail

to

String

helper method for single recipient

cc

String

helper method for single recipient

bcc

String

helper method for single recipient

subject

String

set the subject of this mail

text

String

set the plain text of this mail

html

String

set the html text of this mail

attachment

MailAttachment

set a single attachment of this mail the result of getAttachment when using this method returns an unmodifiable list, if you want to be able to add attachments later, please use setAttachment(new ArrayList()) instead

fixedHeaders

Boolean

set whether our own headers should be the only headers added to the message