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

查看:379
本文介绍了通过其他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天全站免登陆