我们正在为客户开发一个定制的网络应用程序。
该应用程序位于与客户端网站 www.client.com 不同的服务器 server.com 上。
我们应用的每个用户都有一个电子邮件地址,例如 [email protected]、< a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2b5e584e59196b4847424e455f05484446">[电子邮件受保护]等
客户正在使用 Google Apps for Business 来处理其用户电子邮件(例如[电子邮件受保护])。
现在我们需要的是:
每个用户都需要能够向其联系人列表中的人员发送某些电子邮件。这些电子邮件来自我们的邮箱 server.com。但我们希望发件人和回复地址是发送该邮件的用户,例如 [电子邮件受保护]。
我们如何将我们的盒子 server.com 设置为来自“client.com”的电子邮件的授权发件人?我查了一下Google应用程序的SPF记录,它是:
v=spf1 include:_spf.google.com ~all
(1)我们如何将“server.com”添加到这个SPF记录中?
(2) 从 PHP 中(这就是为什么它是一个编程问题),我们如何确保从我们的 server.com 发送的电子邮件仍然显示“From: [电子邮件受保护]" ?
谢谢!
We are developing a custom web app for a client.
This app is on a separate server, server.com, than the client's web site, www.client.com.
Each user of our app has an email address like [email protected], [email protected], etc.
The client is using Google Apps for business for their user emails (like [email protected]).
Now here's what we need:
Each user needs to be able to send certain emails to people on his contact list. Those emails are from our box, server.com. But we want the From and Reply-To address to be the user who sent it, e.g., [email protected].
How can we set up our box, server.com, to be an authorized sender of emails from "client.com"? I looked up the SPF record for Google apps, and it is:
v=spf1 include:_spf.google.com ~all
(1) How do we add "server.com" to this SPF record?
(2) From PHP (this is why it's a programming question), how can we ensure that the email, while sent from our server.com, still says "From: [email protected]" ?
Thanks!
发布评论
评论(1)
对于第 1 部分,只需执行
v=spf1 a include:_spf.google.com ~all
这假设 client.com 将 A 记录设置为 server.comFor part 1. just do
v=spf1 a include:_spf.google.com ~all
This assumes that client.com has the A record set to server.com