如何防止 Worpress 通知电子邮件进入收件人的垃圾邮件文件夹?
我在三个不同的环境中设置了一个网站及其博客,如下所示(出于保密原因,我使用“mydomain.com”而不是实际网站的域)。
- 我的机器上的
local.mydomain.com
和 blog.local.mydomain.com
-
dev.mydomain.com
和 blog.dev。开发服务器上的 mydomain.com
- 生产服务器上的
mydomain.com
和 blog.mydomain.com
当我在 1 和 2(本地和开发)中创建用户时, 通知电子邮件将发送至收件箱新创建的用户。但当我在生产中执行相同操作时,它们会直接进入垃圾邮件文件夹。
现在,默认情况下,Wordpress 通知从 [电子邮件受保护]
,所以就我而言,这些是由 [电子邮件受保护]
,[电子邮件受保护]
和 [电子邮件受保护]
。所以我安装了 Mail From Plugin 来更改默认地址,现在所有三台服务器正在从 [电子邮件受保护]
,这是一个现有的工作地址。
mydomain.com 电子邮件由 Google 帐户管理,工作正常,即从 @mydomain.com 帐户发送的邮件将作为非垃圾邮件接收。其中包括[电子邮件受保护]
地址。
所有这些让我认为托管我的生产站点的服务器可能有问题,但我不知道从哪里开始寻找。
想法?
How can I prevent Worpress notification e-mails from going to recipients' spam folders?
I have set up a site along with its blog in three different environments as follows (I'm using "mydomain.com" instead of the actual site's domain for confidentiality reasons).
local.mydomain.com
and blog.local.mydomain.com
on my machine
dev.mydomain.com
and blog.dev.mydomain.com
on my dev server
mydomain.com
and blog.mydomain.com
on production server
When I create users in 1 and 2 (local and dev), notification e-mails go to the inboxes of the newly created users. But when I do the same in production, they go straight to the spam folders.
Now, by default Wordpress notifications are sent from [email protected]
, so in my case, these were sent by [email protected]
, [email protected]
and [email protected]
. So I installed the Mail From Plugin to change the default address, and now all three servers are sending the messages from [email protected]
, which is an existing and working address.
mydomain.com e-mails are managed by Google Accounts, that's working fine, ie, messages sent from @mydomain.com accounts are received as not-spam messages. That's including that [email protected]
address.
All this leaves me thinking there might be something wrong with the server that's hosting my production site, but I have no idea where to start looking.
Thoughts?
发布评论
评论(2)
我通常在服务器级别处理这个问题,确保所有由 WordPress 发送的电子邮件都是通过我自己的 SMTP 服务器发送的。您可以通过几种方式做到这一点。我的偏好是将所有从我的服务器发送的邮件配置为使用 SMTP。我通常使用 Ubuntu 服务器 - 这是使用 PostFix SMTP https://help.ubuntu.com/community/Postfix。另一种方法是使用其中一个 SMTP 插件并配置为使用您的电子邮件服务器。我过去使用过这个插件 - http://wordpress.org/extend/plugins/wp-mail-smtp/screenshots/。
I usually handle this on the server level by ensuring all emails sent by wordpress are sent via my own SMTP server. You can do this a couple ways. My preference is to configure all mail being sent from my server to use SMTP. I usually use an Ubuntu server - here is a link to using PostFix SMTP https://help.ubuntu.com/community/Postfix. Another way would be to use one of the SMTP plugins and configure to use your email server.I have used this one in the past - http://wordpress.org/extend/plugins/wp-mail-smtp/screenshots/.
它绝对有效
请使用此代码,它可以帮助您:-
Its work definitely
Please use this code its help you:-