Use Amazon Mail Service

Source: Internet
Author: User

1. Register Amazon's simple email service

To sign up for Amazon ses

  1. Go to http://aws.amazon.com/ses and click
    Sign up for Amazon SES.

  2. Follow the on-screen instructions.

2. Obtain the access token of Amazon

To get your AWS access identifiers

  1. Go to http://aws.amazon.com, click
    Account, and then click Security credentials.

  2. Navigate to the access credentials section of the page, and click
    Access keys tab.

  3. 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.

  1. Prepare an AWS credentials file:

    1. Create a new text file. In our example, we call itAWS-Credentials.

    2. Go to
      AWS security credentials page and look up your access credentials.

    3. Copy your access key ID and secret access key into
      AWS-CredentialsFile.

    4. 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
  2. Send the verification request:

    1. Go to the directory where you downloadedSes-verify-email-address.pl.

    2. 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.

  3. 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.