1. Register Amazon's simple email service
To sign up for Amazon ses
Go to http://aws.amazon.com/ses and click
Sign up for Amazon SES.
Follow the on-screen instructions.
2. Obtain the access token of Amazon
To get your AWS access identifiers
Go to http://aws.amazon.com, click
Account, and then click Security credentials.
Navigate to the access credentials section of the page, and click
Access keys tab.
Follow the on-screen instructions to create a new access key ID and secret access key.
3. Verify the email address
Download
Ses-verify-email-address.plFrom
Amazon ses Developer Tools.
Prepare an AWS credentials file:
Create a new text file. In our example, we call itAWS-Credentials.
Go to
AWS security credentials page and look up your access credentials.
Copy your access key ID and secret access key into
AWS-CredentialsFile.
Change the permissions on the file so that only you have read/write access. The procedure for this depends on your operating system.
|
Important |
The preceding step is very important, Because no one else shocould see your secret access key. |
Your credentials file shocould look similar to the following example.
AWSAccessKeyId=022QF06E7MXBSH9DHM02AWSSecretKey=kWcrlUX5JEDGM/LtmEENI/aVmYvHNif5zB+d9+ct
Send the verification request:
Go to the directory where you downloadedSes-verify-email-address.pl.
At the command prompt, enter:
ses-verify-email-address.pl -k aws-credentials -v user@example.com
|
Important |
ReplaceUser@example.comWith your actual email address. |
Go to your email client and log in to your account. you shoshould see a message from Amazon SES, asking you to confirm that you are the owner of this email address. when you click the link in this email, your web browser displays a confirmation page to indicate
That Amazon ses has verified your email address.
Open the email for verification.
5. An error will be reported during command execution: "Can't
Locate XML/libxml. PM
Run:
Perl-mcpan-e 'Install Digest: Sha'
Perl-mcpan-e 'Install URI: Escape'
Perl-mcpan-e 'Install Bundle: lwp'
Perl-mcpan-e 'Install lwp: Protocol: https'
Perl-mcpan-e 'Install MIME: base64'
Perl-mcpan-e 'Install crypt: ssleay'
Perl-mcpan-e 'Install XML: libxml'
6. the following error occurs: can't locate SES. PM in @ INC.
DirectlyIn Amazon ses Developer Tools., upload SES. PM to/usr/lib/Perl.
7. Finally, run the following command to go to the email verification page.
ses-verify-email-address.pl -k aws-credentials -v user@example.com
8. Finally, use AWS-Java-SDK of AWS. refer to the example of sending an email to send an email.