开发者

Sending email from my domain vs from the admin google account?

I have a domain xyz.com and right now it is pointing to my app in appspot. I want to send email alerts to users for various events. However, 开发者_开发知识库appengine restricts email sender to admin email address which was used to create the google app engine account.

Can I send emails on behalf of user@xyz.com using app engine? If not, is there a simple workaround to do this?


According to the documentation about sending mail from within Google App Engine, the email sender has to be either:

  • the email address of an admin account associated with the application OR
  • the Google Account email address of the current signed-in user OR
  • a valid app email address (string @ appid.appspotmail.com, see here for more info)

So if your user is logged in with his/her Google Account while using the app, you will be able to send the mail with sender user@xyz.com. If not, you will have to use an admin account's email, an app email address or create a separate Google Account (which you make an admin of the app) to use for this purpose as is suggested as a workaround in the documentation.


When sending email, you can designate the sender as either the currently logged in user or any registered administrator. It does not have to be the administrator who created the app.

Also note that you can add any email address as an administrator on your app (from the permissions tab in the admin console). It does not need to be a Gmail or Google Apps account; any email account that you can access to click on the confirmation link will work.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜