使用亚马逊邮件服务
2011-09-08 19:30
281 查看
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. 获得亚马逊的访问令牌信息
[b]To get your AWS access identifiers
[/b]
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-address.pl 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.
Your credentials file should look similar to the following example.
Send the verification request:
Go to the directory where you downloaded ses-verify-email-address.pl.
At the command prompt, enter:
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. 最后再执行 以下命令,然后进入邮件验证。
8. 最后应用aws 的 aws-java-sdk ,参照发邮件的例子,就可以发邮件了。
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. 获得亚马逊的访问令牌信息
[b]To get your AWS access identifiers
[/b]
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-address.pl 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. |
AWSAccessKeyId=022QF06E7MXBSH9DHM02 AWSSecretKey=kWcrlUX5JEDGM/LtmEENI/aVmYvHNif5zB+d9+ct
Send the verification request:
Go to the directory where you downloaded ses-verify-email-address.pl.
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. |
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 ,参照发邮件的例子,就可以发邮件了。
相关文章推荐
- 使用Predix的邮件通知服务
- 使用AWS亚马逊云搭建Gmail转发服务(三)
- 使用WinWebMail 简单搭建一个局域网邮件服务 并 测试
- 使用AWS亚马逊云搭建Gmail转发服务(二)
- 数据库邮件服务使用说明
- 使用mail.rc快速配置linux发邮件服务 推荐
- 免费使用QQ邮箱“邮件短信通知”服务
- 使用aws邮件服务
- 市长信箱邮件查询服务: 使用SpringBoot搭建基础
- 安卓系统使用exchange2007邮件服务教程
- 市长信箱邮件查询服务: 使用Elasticsearch 替代 Mysql
- 基于Windows Azure 搭建基于SharePoint 2010 Intranet、Extranet、Internet (4): 配置传出邮件服务: 使用 outlook.com 发送邮件通知
- 使用job自动抓取网页数据发送邮件,以springboot服务启动
- PHP使用socket方式发送邮件,无需SMTP服务
- Linux SendMail 使用外部SMTP服务发送邮件
- 使用JavaMail通过QQ/126服务器服务发送邮件
- C#使用邮件服务
- 使用亚马逊的云服务
- CodeIgniter使用smtp服务发送html邮件的方法