如何使用随机的非应用程序管理员发件人从 Google App Engine 发送电子邮件?
Google App Engine 有一条规则,只允许应用管理员发送电子邮件。 是否有任何人使用的解决方法从非管理地址发送电子邮件?
我正在构建一个 B2B 白标平台,能够在不授予客户管理员访问权限的情况下屏蔽“FROM”地址非常重要。
Google App Engine has a rule of only allowing app admins to send email.
Is there a workaround that anyone out there is using to send emails from non-admin addresses?
I'm building a B2B white-label platform, and being able to mask the "FROM" address is very important without giving my customers admin access.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
文档还指出:
因此,您可以根据该地址创建一个
发件人
地址,甚至在有人回复时将该电子邮件正确路由回您的应用程序。The docs also state:
So you can make up an
sender
address based on that, and even correctly route that email back into your app if anyone replies to it.还可以代表登录用户发送电子邮件(假设该用户使用的是 Google 帐户)。
It is also possible to send email on behalf of a logged in user, assuming that user is using a Google Account.
如果您需要电子邮件看起来像是由用户发送的,并且在回复时回复到该用户的实际电子邮件地址,那么您可以使用reply_to。
这样,对于接收电子邮件的人来说,它会显示为来自 user_name,如果他们回复,那么他们的回复电子邮件将发送到 user_email。
这种方法的主要缺点是,如果有人仔细查看收到消息的地址,他们会看到管理员电子邮件地址,但大多数电子邮件客户端会更突出地显示该名称。
从好的方面来说,您可以作为任何电子邮件地址发送,大多数人永远不会注意到它来自管理员电子邮件地址。
If you need the email to appear as if it was sent by a user and when replied to reply back to that user's actual email address then you can make use of reply_to.
This way to the person receiving the email it will appear that it came from user_name and if they reply then their reply email will be sent to user_email.
The main negative of this approach is that if someone looks closely at the address they received the message from they will see the admin email address but most email clients show the name more prominently.
On the plus side you can send as any email address and most people would never notice it came from an admin email address.