Email request information.
- From (EmailAddress, *required): Sender email address object.
- FromEmailOption (string, optional): Option (LoggedInUser, OrgWideEmail, or Emailprofile) for sender email.
- To (array of EmailAddress, *required): List of recipient email addresses.
- Subject (string, *required): Subject of the email.
- PlainTextBody (string, *required): Plain text body of the email.
- HtmlBody (string, optional): HTML body of the email.
- Cc (array of EmailAddress, optional): CC recipients.
- Bcc (array of EmailAddress, optional): BCC recipients.
- ReplyTo (array of EmailAddress, optional): Reply-to addresses.
- Attachments (array, optional): List of attachments. For more information, refer to the Email Attachment details below.
- Priority (MailPriority, optional): Email priority. Allowed values: Low, Normal, High.
- Headers (object, optional): Custom email headers.
- ShouldProcessInbound (boolean, optional): Indicates if inbound processing should occur.
- EmailProfileName (string, optional): The name of the email profile to use for sending the email when FromEmailOption is set to Emailprofile.
Provide the following details for an email attachment:
- Name: The name of the file. This field is required, and if it contains null value in the request, the API returns an error.
- MimeType: MimeType: A string sent along with a file indicating the type of the file (describing the content format, for example, a sound file might be labeled audio/ogg , or an image file image/png). This field is required, and if it contains an invalid or null value in the request, the API returns an error. For more information on supported media type, click here.
- FileContent: Byte array collection of your file. This field is required, and if it contains an invalid or null value in the request, the API returns an error.