If templates are not being used, all email content must be in plain text, HTML, or both.Visualforce email templates cannot be used for mass email.
The following are methods for Email. All are instance methods.
public Void setBccSender(Boolean bcc)
Type: Void
If the BCC compliance option is set at the organization level, the user cannot add BCC addresses on standard messages. The following error code is returned: BCC_NOT_ALLOWED_IF_BCC_ COMPLIANCE_ENABLED. Contact your Salesforce representative for information on BCC compliance.
public Void setReplyTo(String replyAddress)
Type: Void
public Void setTemplateID(ID templateId)
Type: Void
setHtmlBody and setPlainTextBody apply only to single email methods, not to mass email methods.
public Void setSaveAsActivity(Boolean saveAsActivity)
Type: Void
public Void setSenderDisplayName(String displayName)
Type: Void
public Void setUseSignature(Boolean useSignature)
Type: Void