send email on Google App Engine from custom domain

流过昼夜 提交于 2019-12-23 02:40:31

问题


What I have done:

  1. I have added my domain app.mydomain.com to my app engine project, and can successfully visit id.appspot.com using app.mydomain.com.
  2. I have registered mydomain.com on google app for business.

The problem:

The problem is -- I am NOT able to send emails using @mydomain.com address. If I register an info@mydomain.com as an developer, this will probably solve the problem, but we need to send from more than one address, and I don't think registering a new developer for each address is reasonable.

Anybody knows how to solve this? Thanks!


回答1:


You have two options:

  1. Register all emails that you want to use as administrators/developers but as you mentioned in your post you don't want to do that.

  2. Use SendGrid (or any other email services like Mandrill, Mailgun, etc.) which will give you a lot more features comparing to what GAE offers, including 25k free emails instead of GAE's 100.




回答2:


According to the docs, the sender would need to be an administrator on the project (called "owner" in the new Developers Console). Another route would be to just use a separate email sending service like SendGrid or Postmark.




回答3:


You can use the GMail API to send emails as users of your domain. Note that the emails need to be aliases, groups or users of your domain.




回答4:


You shouldn't have any problem adding and verifying your domain, adding the necessary permissions to send emails. Then, every email address in your domain can be used. See here in the docs: https://developers.google.com/appengine/docs/java/mail/#Java_Sending_mail



来源:https://stackoverflow.com/questions/25704888/send-email-on-google-app-engine-from-custom-domain

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