邮件在垃圾邮件文件夹而不是收件箱中发送 [英] mail are delivered in the spam folder instead of inbox

查看:163
本文介绍了邮件在垃圾邮件文件夹而不是收件箱中发送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友我正在使用php邮件功能将邮件传递给我的群组成员,我正在使用smtp服务器,但我的邮件是在垃圾邮件文件夹而不是收件箱中传递的,我没有在邮件ID中创建任何垃圾邮件过滤器指导如何解决这个问题

hi friends i am using php mail function to deliver my mail to my group member, i am using smtp server but my mails are delivered in the spam folder instead of the inbox i did not create any spam filter in my mail id please guide how to solve this issue

$email = GetUserEmailID(GetUserIdfromNews($newsvl[$k]));
$username = GetUserAdminName(GetUserIdfromNews($newsvl[$k]));
$headers  = "MIME-Version: 1.0\r";
$headers .= "Content-type: text/html; charset=iso-8859-1\r";
$headers .= "From: <$fromemail>";
$subject  = "Posted News has been Approved by Administrator";

$msg ="Hello <font color='#0000FF'>".ucfirst($username)."</font>\n\n<br><br>";
$msg.="************************************************\n<br>";
$msg.="Congrats, Your Last Posted News has been Approved by Administrator\n<br>";
$msg.="************************************************\n<br>";
// echo $msg." ".$subject." ".$email.
// " ".GetUserIdfromNews($newsvl[$k])." ".$newsvl[$k];
mail($email, $subject, $msg, $headers);


推荐答案

你试图弄清楚你的邮件是发送? mail()只是一个内置的功能,可以将邮件发送到本地SMA(例如 sendmail ),从指向它取决于您的计算机的配置。

Have you tried to figure out how was your mail being sent? mail() is simply a built-in function that deliver mail to the local SMA (e.g. sendmail), from that point on it's depend on your machine's configuration.

像Pekka所说,最有可能的是,收件人已经确定您要发送的SMTP服务器是不可信的发送邮件声明来自。

Most likely, as Pekka suggests, is that the recipient had determined that the SMTP server you are sending from is untrustworthy to send a mail claim to be from.

如果您无法控制您的php环境,请考虑使用来自免费但知名电子邮件提供商的服务器的库中的功能,例如GMail的SMTP-TLS服务器。您必须在表单字段中写入 my-php-app@gmail.com (您使用的任何帐户),但您可以分配一个回复-To 以显示被监控的实际电子邮件。

If you have no control over your php environment, consider using function from libraries that utilize servers from free but well-known e-mail providers, e.g. GMail's SMTP-TLS server. You have to write my-php-app@gmail.com (whatever account you are using) in the Form field, however you may assign an Reply-To to reveal the actual e-mail that is monitored.

这篇关于邮件在垃圾邮件文件夹而不是收件箱中发送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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