BlessingCR’s Blog
BlessingCR’s Blog

邮件接入

1. 新建账户,拿到access key 和 secret

2. 下载安装aws 客户端,使用aws config 配置密钥和rigion, 或者直接在~/.aws/ 下新建credentials,config文件

样例如下

credentials 文件内

[default]

aws_access_key_id = AKxxxxI2

aws_secret_access_key = 8NFxxxxxe8

config 文件内

[default]

region = us-east-1

output = json

3. 在控制台右上角名字菜单内,安全凭证下,访问管理/用户或者用户组对accessKey授权

4. 建立模板 aws ses create-template --cli-input-json file://~/test.json

test.json 文件如下

{

    "Template": {

        "TemplateName": "test",

        "SubjectPart": "Greetings, {{code}}!",

        "TextPart": "text, {{code}}",

        "HtmlPart": "<html>\n<body>\n<h2>Hello!</h2>\n<p>This is the HTML part of the message, {{code}}</p></body>\n</html>"

    }

}

5. https://ap-northeast-1.console.aws.amazon.com/ses/home#/verified-identities ses控制台添加邮箱并校验

6. ses控制台 account dashboad 请求移出沙盒, 要求如下

For example, tell us how often you send email, how you maintain your recipient lists, and how you manage bounces, complaints, and unsubscribe requests. It is also helpful to provide examples of the email you plan to send so we can ensure that you are sending high-quality content that recipients will want to receive.

来源: https://support.console.aws.amazon.com/support/home?region=ap-northeast-1#/case/?displayId=11435635971&language=en

自己提交的如下

Hello, We plan to use SES service in the following situations: 1. We will send an email with verification code for customer when he want to register or reset his password in our website ( https://www.want.net); 2. We will discuss the requirements and prices with customer when he submits a order in our website. In our plan, we will send around 30k emails in the next 3-5 months. We pay attention to user experience and check the email health status of emails every month.

7. SDK调用,代码如下

发表回复

textsms
account_circle
email

BlessingCR’s Blog

邮件接入
1. 新建账户,拿到access key 和 secret 2. 下载安装aws 客户端,使用aws config 配置密钥和rigion, 或者直接在~/.aws/ 下新建credentials,config文件 样例如下 credentials 文…
扫描二维码继续阅读
2023-02-21