Amazon Simple Email Service
Developer Guide (API Version 2010-12-01)
Did this page help you?  Yes | No |  Tell us about it...
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.

Appendix: Amazon SES Scripts

Amazon SES provides several Perl scripts for performing various tasks. You can download and run the scripts as they are, modify them, or use them as examples for building your own solutions.


Amazon SES no longer maintains these scripts. For command-line access to Amazon SES, you can use the AWS Command Line Interface or the AWS Tools for Windows PowerShell. To integrate your mail server with Amazon SES, you can use the Amazon SES Simple Mail Transfer Protocol (SMTP) interface. For more information, see Integrating Amazon SES with Your Existing Email Server.

Downloading the Scripts

You can download all of the Amazon SES scripts at Be sure to consult the README file that comes with these scripts, because this file contains important information about how to prepare the scripts for use.

Using Your AWS Credentials

You must provide your AWS credentials whenever you run any of the Amazon SES scripts. For information about AWS credentials, see Using Credentials With Amazon SES. Because it is not secure to provide these credentials on the command line or in a file, these scripts get your AWS access key ID and secret access key from environment variables. The procedure for setting environment variables depends on your operating system.

To specify your AWS credentials

  1. Create an environment variable called AWS_ACCESS_KEY_ID and set it to your AWS access key ID. Your AWS access key ID will look something like: AKIAIOSFODNN7EXAMPLE.

  2. Create an environment variable called AWS_SECRET_ACCESS_KEY and set it to your AWS secret access key. Your AWS secret access key will look something like: wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY.