Override the current default configuration set used by the identity using the SES API - Amazon Simple Email Service

Override the current default configuration set used by the identity using the SES API

You can use the SendEmail operation to send email with a different configuration set. If you do, the configuration set that you specify overrides the default configuration set for the identity.

Note

Before you complete the procedure in this section, you have to install and configure the AWS CLI. For more information, see the AWS Command Line Interface User Guide.

To override a default configuration set using the AWS CLI

  • At the command line, enter the following command to use the SendEmail operation.

aws sesv2 send-email --destination file://DESTINATION-JSON --content file://CONTENT-JSON --from-email-address ADDRESS-OR-DOMAIN --configuration-set-name CONFIG-SET

In the preceding commands, replace DESTINATION-JSON with your destination JSON file, CONTENT-JSON with your content JSON file, ADDRESS-OR-DOMAIN with your FROM email address, and CONFIG-SET with the name of the configuration set you wish to use instead of the default configuration set for the identity.

If the command executes successfully, it outputs a MessageId.