如何通过随机发件人从Google App Engine发送电子邮件? [英] How do I send email from Google App Engine with a random sender?

查看:93
本文介绍了如何通过随机发件人从Google App Engine发送电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用自定义域名(例如xyz@myshop.com)从随机的非应用程序管理员发件人向Google App Engine发送电子邮件?我们需要允许我们网站的用户通过定制的邮件系统相互通信,但也允许他们直接从他们的电子邮件中回复。与craigslist系统类似的东西。但是,似乎GAE不允许我们从非admin的地址发送电子邮件。有没有解决方法/补丁?我们是myshop.com域名的所有者(通过谷歌应用程序验证),所以我不明白为什么这样的事情是不允许的。

How do I send email from Google App Engine with a random, non-app admin sender using a custom domain name (e.g. xyz@myshop.com ) ? We need to allow the users of our website to communicate with each other through a custom made messaging system but also allow them to reply directly from their email. Something similar with the craigslist system. However seems that GAE doesn't allow us to send email from an address that is not admin. Is there any workaround / patch ? We are the owner of myshop.com domain name (verified through google apps) so I don't see why a such thing is not allowed.

推荐答案

虽然您不能只使用任何随机地址,但您可以使用带有'+'后缀的注册管理员地址。因此,您可以通过message-reply+HASH_VALUE@myshop.com发送邮件。然后你的应用程序将收到回复,并可以使用散列来决定将邮件转发给哪个用户。

While you can't use just any random address, you can use a registered administrator address with a '+' suffix. So you could send the mail with a 'from' of, say, message-reply+HASH_VALUE@myshop.com. Then your app will receive the reply, and can use the hash to decide which user to forward the mail to.

这篇关于如何通过随机发件人从Google App Engine发送电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆