当我通过其他 SMTP 服务器发送电子邮件时,电子邮件进入垃圾邮件 [英] Email goes in spam when I send it via others SMTP server

查看:151
本文介绍了当我通过其他 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 服务器发送电子邮件时,电子邮件进入垃圾邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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