amazon simple email service (ses) 使用小记(python)
1 需要帐号的 access key
2 我采用了python的库 https://github.com/pankratiev/python-amazon-ses-api
具体代码如下
第一步
verify你的发出邮件:
from amazon_ses import AmazonSES, EmailMessageAccessKeyID = ...你的AccessKeyIDSecretAccessKey = ...你的SecretAccessKeyamazonSes = AmazonSES(AccessKeyID, SecretAccessKey)message = EmailMessage()message.subject = 'hello world'message.bodyHtml = 'hello world from ses'r = amazonSes.sendEmail( 发信人, 收件人, message)