Integration Cloud 6.1.0 | Applications | Predefined Applications | Simple Mail Transfer Protocol (SMTP) | SMTP Predefined Operation
 
SMTP Predefined Operation
sendEmail
Sends emails to specified recipients. You can attach one or more files to the message.
Input Parameters
from
String Optional. E-mail address of the sender.
to
String Optional. E-mail address of the receiver. If you specify multiple addresses, separate them with commas.
subject
String Subject of the message.
body
String The content of the message.
cc:
String Optional. E-mail addresses of additional receivers. If you specify multiple addresses, separate them with commas.
bcc:
String Optional. E-mail addresses of additional receivers. If you specify multiple addresses, separate them with commas.
subjectCharSet:
String Optional. The character set used to encode the subject. Default: UTF-8.
bodyCharSet:
String Optional. The character set used to encode the email message. Default: UTF-8.
attachments
Document List Attachments to the email message.
Key
Description
contenttype
String Content type of the attachment. For example: application/pdf.
content
byte[ ], String, or java.io.InputStream Content of the attachment.
filename
String Name to assign to the attachment.
encoding
String Encoding of the attachment, for example, base64 or 7bit. If encoding is not specified, 7bit is used.
charset
String Character set encoding of the attachment. If charset is not specified, then UTF-8 encoding is used.
Output Parameters
status
String Final status of the operation.
Usage Notes
*You must define the from and to fields either in the Account Configuration section or while executing the operation.
*If you are using filename to attach a file to the message and the file is not a plain text file, you must set the contenttype and encoding.