当我通过其他 SMTP 服务器发送电子邮件时,电子邮件进入垃圾邮件

Email goes in spam when I send it via others SMTP server(当我通过其他 SMTP 服务器发送电子邮件时,电子邮件进入垃圾邮件)
本文介绍了当我通过其他 SMTP 服务器发送电子邮件时,电子邮件进入垃圾邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 PHP Swift_mailer 库代表客户向客户的客户发送电子邮件.我使用他们的 SMTP 服务器、端口、登录名、密码:

I'm using PHP Swift_mailer library to send emails to my customers' clients from behalf of customers. I use their SMTP server, port, login, pass:

$transport = Swift_SmtpTransport::newInstance($mail_server['host'], $mail_server['port']);
$transport->setUsername($mail_server['username'])
    ->setPassword($mail_server['password']);

这几个月运行良好,但现在我的一些客户的电子邮件开始出现在垃圾邮件文件夹中?

It worked pretty well for a few months, but now the emails started to appear in a Spam folder for some of my customers?

有没有可能是我的问题(PHP 服务器)或我客户的 SMTP 服务器的问题?

Is it possible that the reason could be at my end (PHP server) or the problem in in my customer's SMTP server?

提前致谢!

推荐答案

这是因为你的 SMTP 服务器.不是运行 PHP 的服务器.SMTP 服务器被目标邮件服务器阻止.为了确保这一点,如果您使用 Gmail 服务器更改设置(在 PHP 代码中),它将不会再进入垃圾邮件文件夹.

It's because of your SMTP server. Not the server that runs PHP. The SMTP server is blocked by the destination mail server. For making sure of it, if you change your settings (in PHP code) with Gmail server, it won't go to the spam folder any more.

几个月前它运行良好,但现在电子邮件开始出现问题出现在我的某些客户的垃圾邮件文件夹中?

It worked pretty well for a few months, but now the emails started to appear in a Spam folder for some of my customers?

这是因为目标邮件服务器已将您的 SMTP 服务器添加到他们的黑名单中.

That's because the destination mail server has added your SMTP server to their blacklist.

这篇关于当我通过其他 SMTP 服务器发送电子邮件时,电子邮件进入垃圾邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Convert JSON integers and floats to strings(将JSON整数和浮点数转换为字符串)
in php how do I use preg replace to turn a url into a tinyurl(在php中,如何使用preg替换将URL转换为TinyURL)
all day appointment for ics calendar file wont work(ICS日历文件的全天约会不起作用)
trim function is giving unexpected values php(Trim函数提供了意外的值php)
Basic PDO connection to MySQL(到MySQL的基本PDO连接)
PHP number_format returns 1.00(Php number_Format返回1.00)