通过PHP发送电子邮件,代表别人 [英] Sending e-mail via PHP, on behalf of someone else

查看:193
本文介绍了通过PHP发送电子邮件,代表别人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个表单,允许用户联系我们当地的市议会。我想让它变得容易,所以他们可以填写表单并发送。我只是不知道如何在垃圾邮件过滤方面有效。

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.


  1. 我知道如何发送电子邮件通过php usind sendmail,还可以通过Google Apps smtp服务器。

  1. I know how to send e-mail through php usind sendmail, and also via Google Apps smtp server.

来自我们的域的邮件已应用SPF和DKIM,并且正常工作

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.

任何想法?

推荐答案

将很可能被视为垃圾邮件,因为本地邮件服务器不会对从其不提供服务的域发送邮件负责。然而,您可以使用地址(如 noreply@example.com 中的默认 - 只需使用您的邮件服务器负责的域for),并使用 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 noreply@example.com - just use some domain your mailserver is responsible for) and use the reply-to field for the email address of your user.

这篇关于通过PHP发送电子邮件,代表别人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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