Specifying a configuration set when you send email - Amazon Simple Email Service

Specifying a configuration set when you send email

To use a configuration set when sending an email, you must pass the name of the configuration set in the headers of the email. All of the Amazon SES email sending methods—including the AWS CLI, the AWS SDKs, and the Amazon SES SMTP interface—allow you to pass a configuration set in the headers of the email you send.

If you are using the SMTP interface or the SendRawEmail API operation, you can specify a configuration set by including the following header in your email (replacing ConfigSet with the name of the configuration set you want to use):

X-SES-CONFIGURATION-SET: ConfigSet

This guide includes code examples for sending email using the AWS SDKs and the Amazon SES SMTP interface. Each of these examples includes a method of specifying a configuration set. To see step-by-step procedures for sending emails that include references to configuration sets, see the following: