We support passing in many of the same options as SendTransactionalEmail in the API, via express-relay.jangosmtp.net.
This is done by passing in a custom header with a list of options. Use the following custom header:
X-RelayOptions
The following options are supported via SMTP Header:
OpenTrack | Must be "True" or "False" |
ClickTrack | Must be "True" or "False" |
NoClickTrackText | Must be "True" or "False" |
ReplyTo | Must be a valid email address |
MailFromAddress | Use to specify envelope sender address (custom Return-Path header) |
CustomID | CustomID is an ID value that may be used |
Encoding | Must be "7 bit", "Base 64", or "Quoted Printable" |
Receipt | Must be "True" or "False" |
Wrapping | Must be an integer >= 0 |
TransactionalGroupID | If specified, must be ID that is set up in account settings > Organization > Transactional Groups |
Examples:
To provide a CustomID, use:
X-RelayOptions: CustomID:XXXXX
To provide a CustomID with multiple options, such as CustomID and open tracking:
X-RelayOptions: CustomID:XXXXX, OpenTrack=true
Note: When our relay servers see your header, they will take action on whatever options are passed in and then delete that header. These options will override any that are set in the account. For example, if click tracking is turned on under settings in the UI, but the option X-RelayOptions: ClickTrack=false is passed in, that message will NOT be click tracked.
Comments
0 comments
Article is closed for comments.