PHP - EC2 实施 SES - 帮助

发布于 2024-10-21 22:33:10 字数 175 浏览 6 评论 0 原文

嘿伙计们。我通过 EC2 设置了服务器。我有后缀设置,但像往常一样,电子邮件会进入垃圾邮件箱。我注册了亚马逊的 SES,我看到每个人都说它很容易实现,尽管我似乎无法弄清楚。

我下载了PHP SDK并将其放在inc文件夹中。在我的脚本中引用了它。我无法从脚本中得到任何回应。有我可以使用的演示脚本吗?

谢谢

Hey Guys. I have my servers setup via EC2. I had postfix setup but as usual the emails were going into the spam box. I signed up for Amazons SES, i see everyone saying its easy to implement although I cannot seem to figure it out.

I downloaded the PHP SDK and put it in a inc folder. refrenced it in my script. and I cannot get any response what-so-ever from the script. Is there any demo scrips I can use?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

遇到 2024-10-28 22:33:10

“哇,”我心里想。 “这只是之夜,SwiftMailer 是一个很好的答案为什么,我只是向 EC2 上可能需要 SES 的人推荐它 今天早些时候!真幸运,我可以——等一下,这是同一个人!”

不过,严肃地说,我不能强烈推荐亚马逊的SDK。请注意,这不是糟糕的代码,但它的文档遍布各处。

此 SwiftMailer 第三方传输插件 使用自己的 API 实现调用,只需要您的 AWS 密钥和秘密。 这是作者的博客文章,显示如何使用它发送邮件。这需要在您 >验证收件人/发件人电子邮件地址以进行测试。

"Wow," I thought to myself. "This is just the night for questions for which SwiftMailer is a great answer! Why, I was just recommending it for someone on EC2 that may have needed SES earlier today! What luck, I can jus-- WAIT A MINUTE, this is the same guy!"

In all seriousness, though, I can't really recommend Amazon's SDK. It's not bad code, mind you, but the documentation for it is spread out all over the place.

This third-party Transport addon for SwiftMailer uses it's own implementation of the API calls, and just needs your AWS key and secret. Here's a blog post by the author showing how to use it to send mail out. This needs to happen after you authenticate the to/from email addresses for your testing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文