The EmailMessage class is the main class for creating email messages that you want to send from workflows.
The EmailMessage class defines the following attributes.
|
|
|
bccAddress
|
String
|
Comma-separated list of blind carbon copy email address entries
|
ccAddress
|
String
|
Comma-separated list of carbon copy email address entries
|
fromAddress
|
String
|
Sender's email address
|
fromName
|
String
|
Sender's name
|
password
|
String
|
Password for authentication
|
smtpHost
|
String
|
SMTP host name or IP address
|
smtpPort
|
Number
|
SMTP port number (default is 25)
|
subject
|
String
|
Email subject
|
toAddress
|
String
|
Comma-separated list of email address entries
|
username
|
String
|
User name for authentication
|
The EmailMessage class defines the following methods.
|
|
|
addMimePart(Object,String):void
|
Void
|
Adds a MIME part to the message.
|
sendMessage():void
|
Void
|
Sends an email message.
|