【发布时间】:2016-11-04 14:23:49
【问题描述】:
通过我的网站、联系表单或其他来源发送的任何电子邮件都会发送到我的 gmail 帐户的垃圾邮件文件夹中。我目前正在获取使用 pop3 发送的电子邮件。
我每次都点击“非垃圾邮件”按钮,但它没有任何帮助。我也只是尝试设置一个过滤器来帮助解决这个问题,但是问题仍然存在。
电子邮件总是来自不同的发件人,但它总是来自我的主机,即:gatorxxxxx@hostgator.com。这是我在过滤器中输入的电子邮件地址。我将它包含在“发件人”和“有字词”选项中。
这需要时间吗?或者我应该尝试什么?
$name = trim(htmlspecialchars($_POST['contact_name'], ENT_QUOTES));
$email = trim(htmlspecialchars($_POST['contact_email']));
$phone = trim(htmlspecialchars($_POST['contact_phone']));
$message = trim(htmlspecialchars($_POST['contact_message'], ENT_QUOTES));
$email_from = "contact@xxx.com";
if($hasError !== true) {
$to = "contact@xxx.com";
$subject = "Contact Form Submitted";
$msgcontents = "Name: $name<br>Email: $email<br>Phone Number: $phone<br>Message: $message";
$headers = "MIME-Version: 1.0 \r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1 \r\n";
$headers .= "From: $name <$email_from> \r\n";
$emailsent = mail($to, $subject, $msgcontents, $headers);
【问题讨论】:
-
在问 SO 之前,您是否尝试过查找内容? support.google.com/mail/answer/81126
-
@Nate 是的,伙计,我确实做到了。我搜索并尝试了多种不同的建议,其中两个在我的问题中被指出。我不做批量发送。这些是单个电子邮件。获得生命。
-
你说你先谷歌,但你的很多帖子都被标记为重复...