ASi

Simple Email Service (SES)

Simple Email Service (SES) のページで Identity Management / Email Adresses
に送り元(from) に使うアドレスを登録する必要がある。登録依頼するとそのアドレスに確認URLが送られて来、踏むと登録される。


IAM Policy に下記権限が要る。

{
   "Version": "2012-10-17",
   "Statement": [
       {
           "Effect": "Allow",
           "Action": [
               "ses:SendRawEmail",
               "ses:SendEmail"
           ],
           "Resource": "*"
       }
   ]
}


コマンドラインだと簡単にはこれで送れる。
aws --region us-west-2 ses send-email --from someonefrom@somewhere.com --to someoneto@somewhere.com --subject "test title" --text "test"