使用亚马逊邮件服务

使用亚马逊邮件服务,第1张

概述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 t

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.amazon.com,click Account,and then click Security Credentials.

Navigate to the Access Credentials section of the page,and click the Access Keys tab.

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

3. 验证发邮件的地址

Download ses-verify-@[email protected] from Amazon SES Developer Tools.

Prepare an AWS credentials file:

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

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

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

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=022QF06E7MXBSH9DHM02AWSSecretKey=kWcrlUX5JEDGM/LtmEENI/aVmYvHNif5zB+d9+ct

Send the verification request:

Go to the directory where you downloaded ses-verify-@[email protected].

At the command prompt,enter:

ses-verify-@[email protected] -k aws-credentials -v [email protected]

important

Replace [email protected] with your actual email address.

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 protected] -k aws-credentials -v [email protected]


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

总结

以上是内存溢出为你收集整理的使用亚马逊邮件服务全部内容,希望文章能够帮你解决使用亚马逊邮件服务所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/1286769.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-09
下一篇 2022-06-09

发表评论

登录后才能评论

评论列表(0条)

保存