PHP - EC2 Implementing SES - Help

六眼飞鱼酱① 提交于 2020-01-25 09:46:05

问题


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


回答1:


"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.



来源:https://stackoverflow.com/questions/5294825/php-ec2-implementing-ses-help

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!