douhuanchi6586 2014-06-03 18:05
浏览 86

AWS SES缺少最终的'@domain'PHP SDK

Here's a tidbit so you don't have to spend two hours nearly tearing out your hair like I just did.

I was receiving the following error message: Fatal error: Uncaught Aws\Ses\Exception\SesException: AWS Error Code: InvalidParameterValue, Status Code: 400, AWS Request ID: [Removed for stackoverflow], AWS Error Type: client, AWS Error Message: Missing final '@domain', User-Agent: aws-sdk-php2/2.6.6 Guzzle/3.9.1 curl/7.36.0 PHP/5.5.12

Earlier errors had shown validation taking place, (e.g. ToAddresses must be an array), so I assumed the data was validated. To a degree, I was wrong.

  • 写回答

1条回答 默认 最新

  • duanhui4160 2014-06-03 18:05
    关注

    Despite the name, this is an error indicating that SES doesn't like one of your parameters. In my case, I was basing my sendEmail request off this page from the PHP SDK documentation and I had left Source as 'string'.

    Try setting up your message as $msg and using echo "sendSES msg: ".print_r($msg, true); to see exactly what's going to SES.

    Postfix people seem to have the issue that the email address is not matching the ec2 domain name. A different issue, but similar in that it is SES rejecting the semantics of the data.

    评论

报告相同问题?

悬赏问题

  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看