Emails
emails
Provider
emails.provider
Methods
Create an email provider. The credentials object
requires different properties depending on the email provider (which is specified using the name property):
mandrillrequiresapi_keysendgridrequiresapi_key-
sparkpostrequiresapi_key. Optionally, setregiontoeuto use the SparkPost service hosted in Western Europe; set tonullto use the SparkPost service hosted in North America.euornullare the only valid values forregion. -
mailgunrequiresapi_keyanddomain. Optionally, setregiontoeuto use the Mailgun service hosted in Europe; set tonullotherwise.euornullare the only valid values forregion. sesrequiresaccessKeyId,secretAccessKey, andregion-
smtprequiressmtp_host,smtp_port,smtp_user, andsmtp_pass
settings object with different configuration
options, which will be used when sending an email:
-
smtpprovider,settingsmay containheadersobject.-
When using AWS SES SMTP host, you may provide a name of configuration set in
X-SES-Configuration-Setheader. Value must be a string. -
When using Sparkpost host, you may provide value for
X-MSYS_APIheader. Value must be an object.
-
When using AWS SES SMTP host, you may provide a name of configuration set in
-
for
sesprovider,settingsmay containmessageobject, where you can provide a name of configuration set inconfiguration_set_nameproperty. Value must be a string.
Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified.
Example: Authorization: Bearer My Bearer Token
Comma-separated list of fields to include or exclude (dependent upon include_fields) from the result. Leave empty to retrieve name and enabled. Additional fields available include credentials, default_from_address, and settings.
Whether specified fields are to be included (true) or excluded (false).
Update an email provider. The credentials object
requires different properties depending on the email provider (which is specified using the name property):
mandrillrequiresapi_keysendgridrequiresapi_key-
sparkpostrequiresapi_key. Optionally, setregiontoeuto use the SparkPost service hosted in Western Europe; set tonullto use the SparkPost service hosted in North America.euornullare the only valid values forregion. -
mailgunrequiresapi_keyanddomain. Optionally, setregiontoeuto use the Mailgun service hosted in Europe; set tonullotherwise.euornullare the only valid values forregion. sesrequiresaccessKeyId,secretAccessKey, andregion-
smtprequiressmtp_host,smtp_port,smtp_user, andsmtp_pass
settings object with different configuration
options, which will be used when sending an email:
-
smtpprovider,settingsmay containheadersobject.-
When using AWS SES SMTP host, you may provide a name of configuration set in
X-SES-Configuration-Setheader. Value must be a string. -
When using Sparkpost host, you may provide value for
X-MSYS_APIheader. Value must be an object.
sesprovider,settingsmay containmessageobject, where you can provide a name of configuration set inconfiguration_set_nameproperty. Value must be a string. -
When using AWS SES SMTP host, you may provide a name of configuration set in
Domain types