Create an email job to send emails with attachments.

POST {{baseUrl}}/emailNotificationJobs

Publishes an email to a set of recipients or a broadcast group. A broadcast group is a group of users within the tenant. When using this endpoint, either recipients or broadcastGroup is required to be provided. You may provide both, recipients and broadcast group as well. A recipient list can contain up to 50 recipients. When email is sent to recipients listed in broadcastGroup, the recipients are listed under 'bcc' field. The message to be sent in the email can be provided directly through message attribute or passed through a template. When using template, message attribute may not be specified. When creating an email job a message or template is required to be provided . If both attributes are provided, the message attribute is used for sending email. In all 5 files can be uploaded as attachments; where-in the total size of all attachments is limited to 8MB. Only zip, csv, pdf and json file types are supported as attachments. The attached files are scanned for viruses before dispatching. The email job will be deleted automatically after 180 days from the date of creation.

Request Body

[{"name"=>"metadata", "value"=>"<json>", "datatype"=>"string"}, {"name"=>"attachment", "value"=>nil, "datatype"=>"null"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring