This will create a DRAFT in your Gmail account and return the actual Gmail DRAFT Id. Then use /campaigns to send the campaign. DO NOT specify a value for campaignDraftId.
This is the DRAFT ID that will be returned. Do not specify it.
,
fromEmail (string, optional):
The from address for the campaign. Must match an authenticated From Address in the Gmail account.
,
subject (string),
message (string),
messageType (string, optional):
Set to either "html" or "plain". HTML messages will always result in a plain text message being auto generated by Google and sent along with the HTML MIME part.
,
listAddress (string, optional):
The list address for this campaign. Example: aaa-bbb-ccc@gmass.co
,
emailAddresses (string, optional),
cc (string, optional):
One or more Cc addresses, separated by a comma or any other standard delimiter. Cc addresses will receive a copy of each individual email sent as part of the campaign.
,
bcc (string, optional):
One or more Bcc addresses, separated by a comma or any other standard delimiter. Bcc addresses will receive a blind copy of each individual email sent as part of the campaign.
Set when the campaign should send, along with other options like tracking in the campaignSettings object. You must already have a campaignDraftId value from the /api/campaigndrafts method.
Specify the numeric campaign ID to retrieve the recipients that unsubscribed. Unsubscribed addresses apply account-wide and are eliminated from future campaigns. Use campaignId=0 for all account unsubscribes.
Specify the numeric campaign ID to retrieve the recipients that bounced. Bounced addresses apply account-wide and are eliminated from future campaigns.
If you need to send a transactional email to just one recipient as opposed to a campaign, use this method. You can also send transactional email via the SMTP relay at smtp.gmass.co.