Constructors
Email()
Methods
addAttachment(Integer,Bool)
Adds an attachment to the email object.send()
Sends the email.setValue(String,String)
Sets the value of the given field in the email instance. For multiple recipients, call setValue multiple times, once for each recipient.Available fields:
- from: The from address.
- to: The recipient.
- cc: The carbon copy recipient.
- bcc: The bcc recipient.
- sms: A cellphone number to send sms to.
- smsFrom: The from address when sending sms.
- subject: The subject of the email.
- body: The plain text body of the email.
- bodyHtml: The HTML formated body of the email.
- ticketId: The ticketId, only used with sms.</p
- envelopeFrom
- Sets the envelope from mail address. “From” will also be set if not already set