代表其他人通过 PHP 发送电子邮件
我想创建一个表格,允许用户联系我们当地的市议会。我想让事情变得简单,这样他们只需填写表格并发送即可。我只是不能 100% 确定这在垃圾邮件过滤方面如何发挥作用。
我知道如何通过 php usind sendmail 以及通过 Google Apps smtp 服务器发送电子邮件。
来自我们域的邮件同时应用了 SPF 和 DKIM,并且工作正常
我想知道是否有人填写了表单,并且我们在发件人字段中使用他们的电子邮件地址,它会被视为垃圾邮件而被阻止吗?
我不确定我们为验证来自我们域的邮件而设置的验证将如何影响从我们的服务器发送的邮件,该邮件的发件人地址具有不同的域。
有什么想法吗?
I would like to create a form that allows users to contact our local city council. I want to make it easy, so they can just fill out the form and send it. I am just not 100% sure how this would work in regards to spam filtering.
I know how to send e-mail through php usind sendmail, and also via Google Apps smtp server.
Mail from our domain has both SPF and DKIM applied, and it is working correctly
What I'm wondering is if someone fills out the form and we use their e-mail address in the from field will it be blocked as spam?
I am not sure how the verification that we have set up to verify mail from our domain will affect mail sent from our server, with a from address that has a different domain.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它很可能被视为垃圾邮件,因为您的本地邮件服务器不会负责从它不服务的域发送邮件。不过,您可以使用默认的
发件人
地址(例如[ email protected]
- 只需使用您的邮件服务器负责的某个域)并使用reply-to
字段作为您用户的电子邮件地址。It will most likely be treated as spam as your local mailserver will not feel responsible for sending mail from a domain it does not serve. You can however use a default
from
address (like[email protected]
- just use some domain your mailserver is responsible for) and use thereply-to
field for the email address of your user.