加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

使用亚马逊邮件服务

发布时间:2020-12-16 00:33:46 所属栏目:大数据 来源:网络整理
导读:1. ?注册亚马逊的简单邮件服务 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. ?获得亚马逊的访问令牌信息 To get your AWS access identifiers Go to http://aws.a

1. ?注册亚马逊的简单邮件服务

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. ?获得亚马逊的访问令牌信息

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 the Access Keys tab.

  3. Follow the on-screen instructions to create a new Access Key ID and Secret Access Key.

3. 验证发邮件的地址

Download ses-verify-email-address.pl from Amazon SES Developer Tools.

  1. Prepare an AWS credentials file:

    1. Create a new text file. In our example,we call it aws-credentials.

    2. Go to the AWS Security Credentials page and look up your Access Credentials.

    3. Copy your Access Key ID and Secret Access Key into the aws-credentials file.

    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 should see your Secret Access Key.

    Your credentials file should look similar to the following example.

    AWSAccessKeyId=022QF06E7MXBSH9DHM02
    AWSSecretKey=kWcrlUX5JEDGM/LtmEENI/aVmYvHNif5zB+d9+ct
  2. Send the verification request:

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

    2. At the command prompt,enter:

      ses-verify-email-address.pl -k aws-credentials -v user@example.com

      Important

      Replace user@example.com with your actual email address.

  3. Go to your email client and log in to your account. You should 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.

    打开邮件进行验证。


    5. ?执行命令时会报错: ?"Can't locate XML/LibXML.pm

    执行:

    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. 还会报错:?Can't locate SES.pm in @INC?

    直接把??Amazon SES Developer Tools. 中的?SES.pm上传至 /usr/lib/perl 下。


    7. 最后再执行 以下命令,然后进入邮件验证。

    ses-verify-email-address.pl -k aws-credentials -v user@example.com


    8. ? 最后应用aws 的?aws-java-sdk ,参照发邮件的例子,就可以发邮件了。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读