The method takes as input the document JSON or XML that has the structure MessageDTO defined in the tables below.
MessageDTO |
---|
Parameter | Type | Description |
---|
Subject | String | the subject of the message |
Html | HtmlDTO | the HTML part of the message |
Text | String | the plain text part of the message |
From | EmailAddressDTO | the sender |
To | List<EmailAddressDTO> | the list of recipients in To header |
Cc | List<EmailAddressDTO> | the list of recipients in Cc header |
Bcc | List<EmailAddressDTO> | the list of recipients in Bcc |
ReplyTo | String | The Reply-To header value |
CharSet | String | The charset of the message body |
ExtendedHeaders | List<NameValueDTO> | List of extended headers (only configured SMTP custom headers will be sent) |
Attachments | List<MessagePartDTO> | List of attachments |
EmbeddedImages | List<MessagePartDTO> | list of embedded images |
XSmtpAPI | XSmtpAPIDTO | the X-SMTPAPI header value, used for custom aggregations and configurations |
User | SmtpUserDTO | the SMTP+ user credentials |
HtmlDTO |
---|
Parameter | Type | Description |
---|
DocType | String | The DOCTYPE directive |
Head | String | The head content |
Body | String | The body content |
BodyTag | String | the body tag, default is "< body>" |
EmailAddressDTO |
---|
Parameter | Type | Description |
---|
Name | String | the name |
Email | String | the email address |
NameValueDTO |
---|
Parameter | Type | Description |
---|
N | String | the name of the parameter |
V | String | the value of the parameter |
MessagePartDTO |
---|
Parameter | Type | Description |
---|
Filename | String | the file name |
ContentId | String | the Content-Id value |
Body | Array of Byte | the array of byte of the content |
XSmtpAPIDTO |
---|
Parameter | Type | Description |
---|
CampaignName | String | The name used for the aggregated campaign |
CampaignCode | String | The campaign code which determines the aggregation |
Header | Boolean | Add or not the MailUp header to the message |
Footer | Boolean | Add or not the MailUp footer to the message |
ClickTracking | Boolean | Use the click tracking |
ViewTracking | Boolean | Use the view tracking |
Priority | Integer | Set the priority of the message (1 high - 5 low ) |
Schedule | DateTime | Schedule date and time of the message |
DynamicFields | List<NameValueDTO> | List of merge tags and dynamic field of the recipient |
CampaignReport | String | Name of the aggregated campaign report |
SkipDynamicFields | Boolean | skip merge tags evaluation |
SmtpUserDTO |
---|
Parameter | Type | Description |
---|
Username | String | the username |
Password | String | the password |