Can Google App Engine use a third party SMTP server?

三世轮回 提交于 2019-12-01 02:51:09

问题


Google App Engine currently limits you to 2,000 emails per day (for free) via their API.

I am trying to find a definitive answer if it is possible to use a third-party system if you need to send more. I know that they disallow raw sockets, so I would assume that there might be trouble with this approach... but surely I'm not the first to see it.

Worst case, I can build a simple offsite web service that my GAE can call... but I'd much rather just be able to send directly through an SMTP server.

Thanks!


回答1:


Nope.

You're correct: you cannot make raw socket requests, nor any other direct outbound requests except through the urlfetch API. To talk to an external SMTP server, you would need to use a webservice as a proxy.




回答2:


We use the Postmark mail outsourcing service via the hutools.postmark API. Since the communication is HTTP based, it works like a charm on Google AppEngine. This might be an option for you, although it is also a for-pay service. We use it to get arround GAEs sender restrictions.




回答3:


I've successfully used third party providers for email services with Google App Engine. I've used both SendGrid and MailGun using their HTTP-API.



来源:https://stackoverflow.com/questions/4000748/can-google-app-engine-use-a-third-party-smtp-server

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