sendTestMailToAll
Sends test emails to all recipients of a specific recipient list in Optimizely Campaign.
All mailing types and mailings in any status can be sent with this method.
Notes
- The test mail is sent to at most 1000 recipients to prevent major mistakes.
- The actual mails are sent asynchronously. So, you should not delete any recipient immediately after calling this method.
Type: int[ ]
Parameters
Name | Type | Value |
---|---|---|
sessionId | String | ID of the session |
mailingId | long | ID of the mailing |
recipientListId | long | ID of the recipient list Must be a test recipient list and needs not to be configured for the given mailing. |
Return values
For each recipient:
- 0:Â if the mail has been spooled
- 1: if the recipient is blocked
- 2:Â if the recipient is unsubscribed
- 3:Â if the recipient was not found
- 4:Â if the recipient list is invalid
- 5:Â if the recipient is blocked by the mailing's target group
- 6:Â if the recipient has caused too many bounces
Code structure
int[] sendTestMailToAll(String sessionId, long mailingId, long recipientListId)
Updated almost 3 years ago
Next