SEND EMAILS USING APEX
Email Methods The following are methods for Email . All are instance methods. setBccSender(bcc) Indicates whether the email sender receives a copy of the email that is sent. For a mass mail, the sender is only copied on the first email sent. setReplyTo(replyAddress) Optional. The email address that receives the message when a recipient replies. setTemplateID(templateId) The ID of the template to be merged to create this email. Specify a value for setTemplateId , setHtmlBody , or setPlainTextBody . Or, you can define both setHtmlBody and setPlainTextBody . setSaveAsActivity(saveAsActivity) Optional. The default value is true , meaning the email is saved as an activity. This argument only applies if the recipient list is based on targetObjectId or targetObjectIds . If HTML email tracking is enabled for the organization, you will be able to track open rates. setSenderDisplayName(displayName) Optional. The name that appears...