| setBccAddresses | String[] | Void | Optional. A list of blind carbon copy (BCC) addresses. The
maximum allowed is 25. This argument is allowed only when a template
is not used. At least one value must be specified in one of the following
fields: toAddresses, ccAddresses, bccAddresses, targetObjectId, or targetObjectIds. 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.com representative for information on BCC compliance. |
| setCcAddresses | String[] | Void | Optional. A list of carbon copy (CC) addresses. The maximum
allowed is 25. This argument is allowed only when a template is not
used. All email must have a recipient
value of at least one of the following: - toAddresses
- ccAddresses
- bccAddresses
- targetObjectId
- targetObjectIds
|
| setCharset | String | Void | Optional. The character set for the email. If this value is
null, the user's default value is used. |
| setDocumentAttachments | ID[] | Void | Optional. A list containing the ID of each document object
you want to attach to the email. You can attach multiple documents
as long as the total size of all attachments does not exceed 10 MB. |
| setFileAttachments | EmailFileAttachment[] | Void | Optional. A list containing the file names of the binary and
text files you want to attach to the email. You can attach multiple
files as long as the total size of all attachments does not exceed
10 MB. |
| setHtmlBody | String | Void | Optional. The HTML version of the email, specified by the sender.
The value is encoded according to the specification associated with
the organization. You must specify a value
for setTemplateId, setHtmlBody, or setPlainTextBody. Or, you can define both setHtmlBody and setPlainTextBody. |
| setInReplyTo | String | Void | Optional. The In-Reply-To field of the outgoing email. Identifies
the email or emails to which this one is a reply (parent emails).
Contains the parent email or emails' message-IDs. |
| setPlainTextBody | String | Void | Optional. The text version of the email, specified by the sender. You must specify a value
for setTemplateId, setHtmlBody, or setPlainTextBody. Or, you can define both setHtmlBody and setPlainTextBody. |
| setOrgWideEmailAddressId | ID | Void | Optional. The ID of the organization-wide email address associated
with the outgoing email. The object's DisplayName field cannot be set if the setSenderDisplayName field is already set. |
| setReferences | String | Void | Optional. The References field of the outgoing email. Identifies
an email thread. Contains the parent emails' References and message
IDs, and possibly the In-Reply-To fields. |
| setSubject | String | Void | Optional. The email subject line. If you are using an email
template, the subject line of the template overrides this value. |
| setTargetObjectId | ID | Void | Required if using a template, optional otherwise. The ID of
the contact, lead, or user to which the email will be sent. The ID
you specify sets the context and ensures that merge fields in the
template contain the correct data. Do not specify the IDs of records
that have the Email Opt Out option selected. All email must have a recipient
value of at least one of the following: - toAddresses
- ccAddresses
- bccAddresses
- targetObjectId
- targetObjectIds
|
| setToAddresses | String[] | Void | Optional. A list of email addresses to which you are sending
the email. The maximum number of email addresses allowed is 100. This argument is allowed only when a template is not used. All email must have a recipient
value of at least one of the following: - toAddresses
- ccAddresses
- bccAddresses
- targetObjectId
- targetObjectIds
|
| setWhatId | ID | Void | Optional. If you specify a contact for the targetObjectId field, you can specify a whatId as well. This
helps to further ensure that merge fields in the template contain
the correct data. The value must be one of the following types:- Account
- Asset
- Campaign
- Case
- Contract
- Opportunity
- Order
- Product
- Solution
- Custom
|