使用 Wordpress 中的联系表单 7 插件将电子邮件转到垃圾文件夹

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12639494/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 19:02:13  来源:igfitidea点击:

Email goes to junk folder using contact form 7 plugin in Wordpress

wordpresscontact-form-7

提问by rash111

I am using contact form 7 (version 3.3) plugin to create a form and to send email. I have only 3 field:

我正在使用联系表单 7(3.3 版)插件来创建表单并发送电子邮件。我只有 3 个字段:

  1. firstname
  2. lastname
  3. email
  1. 电子邮件

When I click on submit button, email goes in junk folder.

当我点击提交按钮时,电子邮件进入垃圾文件夹。

回答by McNab

The default CF 7 'from' field quite often results in the notifications being marked as spam. Change it to a proper email address, even [email protected] will work better than the default (as loan points out - missed that when I answered!).

默认的 CF 7 'from' 字段经常导致通知被标记为垃圾邮件。将其更改为正确的电子邮件地址,即使 [email protected] 也比默认地址更有效(如贷款指出的那样 - 我回答时错过了!)。

If that doesn't help and it's actually the server you are hosting the site on that has been blacklisted, have a look at the WP plugin that allows you to use SMTP rather than the PHP mail() function.

如果这没有帮助,并且实际上是您托管站点的服务器已被列入黑名单,请查看允许您使用 SMTP 而不是 PHP mail() 函数的 WP 插件。

http://www.wordpress.org/extend/plugins/wp-mail-smtp/

http://www.wordpress.org/extend/plugins/wp-mail-smtp/

That can sort it too.

这也可以排序。

回答by Ioan

The recipient of the e-mail decides what e-mail content is to be considered "junk". Make sure there is a "from" e-mail in the e-mails sent out by the plugin. Then, in your e-mail client, add that address to a white list so that all future e-mails from it will always be considered legitimate.

电子邮件的收件人决定将哪些电子邮件内容视为“垃圾”。确保插件发送的电子邮件中有“发件人”电子邮件。然后,在您的电子邮件客户端中,将该地址添加到白名单中,以便以后所有来自该地址的电子邮件始终被视为合法。

回答by mmdush

Does your WP runs on a top level domain ? and on own hosting ? if you do try signing your domain with the SPF records and DKIM records.. Most of the main email providers look for these records on their incoming emails, before they decide it's a SPAM Hope that helps..

您的 WP 是否在顶级域上运行?并在自己的主机上?如果您确实尝试使用 SPF 记录和 DKIM 记录对您的域进行签名.. 大多数主要的电子邮件提供商会在收到的电子邮件中查找这些记录,然后再决定它是垃圾邮件希望有帮助..

回答by Gerard de Visser

Avoid to use too much links in your e-mail, cause that will increase the chance that the mail will be marked as spam.

避免在您的电子邮件中使用过多的链接,因为这会增加邮件被标记为垃圾邮件的机会。

I had the same problem, but solved it by removing some links in the automatically generated mail.

我遇到了同样的问题,但通过删除自动生成的邮件中的一些链接来解决它。

回答by JohnLionFlow

I've just been resolving the same situation

我刚刚解决了同样的情况

My mail was being put in the spam folder and the email message wasn't being sent. I found this Linkand added this code in my functions.php file:

我的邮件被放入垃圾邮件文件夹,但电子邮件没有被发送。我找到了这个链接并在我的functions.php文件中添加了这段代码:

function cdx_from_email() {
    return "[email protected]";
}
add_filter( 'wp_mail_from', 'cdx_from_email' );
function cdx_from_name() {
    return "WPGod";
}
add_filter( 'wp_mail_from_name', 'cdx_from_name' );

By default your site will send as; from 'wordpress' by changing this to my name and email address everything worked sending to gmail.

默认情况下,您的站点将发送为;从'wordpress'通过将其更改为我的姓名和电子邮件地址,一切都可以发送到gmail。

This was all tested on a local MAMP set-up.

这一切都在本地 MAMP 设置上进行了测试。

回答by LOTUSMS

Although this question has already been answered, I thought I added this because the answer here provided was always my way to fix it until recently it stopped working again. So, I just came back from a seminar that targeted this specific problem. And I'm sharing :)

虽然已经回答了这个问题,但我想我添加了这个,因为这里提供的答案一直是我解决它的方法,直到最近它再次停止工作。所以,我刚从一个针对这个特定问题的研讨会回来。我正在分享:)

Most emails sent from third party applications such as Wordpress, Joomla, or Amazon get diverted to junk and sometimes they fail and get stuck behind a security layer. I know for a fact with Wordpress Contact Form 7, this is the case many times.

大多数从 Wordpress、Joomla 或 Amazon 等第三方应用程序发送的电子邮件都被转为垃圾邮件,有时它们会失败并被困在安全层后面。我知道 Wordpress Contact Form 7 的一个事实,这种情况很多次了。

As much as I hesitate to relay on plugins, this one helps a lot! WP-SMTP

尽管我犹豫要不要使用插件,但这个插件很有帮助!WP-SMTP

Before you do anything ensure your SMTP settings are written correctly and make sure the fields are filled correctly. This means ensuring these are the settings you are using for Outlook:

在您执行任何操作之前,请确保您的 SMTP 设置正确写入并确保正确填写字段。这意味着确保这些是您用于 Outlook 的设置:

From: your email ("[email protected]")
From Name: "Your name or company name"
Host: smtp.live.com
Type of Encryption: TLS
SMTP Port: 587
SMTP Authentication: Yes
Username: Same you use to login (usually the complete email address)
Password: Enough said there

IMPORTANT- Send a test email even if it fails. The point is to trigger an activity in Outlook and have them flag it as an unauthorized connection

重要- 即使失败也发送测试电子邮件。关键是在 Outlook 中触发一个活动,并让他们将其标记为未经授权的连接

Now, to the fix:

现在,修复:

  • Go to Outlook.com
  • Login
  • go to Account Settings
  • Choose Security & Privacy
  • Click on "See my recent activity"
  • The most recent activity should be the fail attempt. Authorize it as a trusted connection.
  • 转到 Outlook.com
  • 登录
  • 转到帐户设置
  • 选择安全和隐私
  • 点击“查看我最近的活动”
  • 最近的活动应该是失败尝试。将其授权为可信连接。

Done!

完毕!

Re-test and you shall see your emails showing in the inbox as an authorized connection. Doing these steps let Outlook know that your emails from Wordpress are legitimate connections and not solicitations etc.

重新测试,您将看到您的电子邮件在收件箱中显示为授权连接。执行这些步骤让 Outlook 知道您来自 Wordpress 的电子邮件是合法连接,而不是请求等。

回答by LOTUSMS

As you have been advised changing the default cf7 to [email protected] may give you a better result however, from my experience, more often than not, this is a problem with your hosting company's restriction of the PHP mail () function and not cf7 itself.

正如您被告知将默认的 cf7 更改为 [email protected] 可能会给您一个更好的结果,但是,根据我的经验,通常情况下,这是您的托管公司对 PHP 邮件 () 函数的限制的问题,而不是cf7 本身。

Since wordpress by default sends email using the PHP mail() function, which is already very popular for not being reliable, you should expect to lose some mails to the junk.

由于 wordpress 默认使用 PHP mail() 函数发送电子邮件,该函数已经因不可靠而非常流行,因此您应该期望将一些邮件丢失到垃圾邮件中。

you can loose some mails to the PHP mail() function for a number of reasons but top of the list is:

出于多种原因,您可以向 PHP mail() 函数发送一些邮件,但最重要的是:

Most hosting companies restrict usage of this function to prevent abuse and spam.

大多数托管公司限制使用此功能以防止滥用和垃圾邮件。

So if you are loosing emails to junk, chances are your hosting company is restricting the usage of this function for reasons mentioned above.

因此,如果您将电子邮件丢失为垃圾邮件,则您的托管公司可能会出于上述原因限制此功能的使用。

Solution:

解决方案:

Your best choice is to use SMTP (simple mail transfer protocol) in place of the PHP mail () function for sending mails. The SMTP is the industry mail standard and it uses proper authentication which ensures more mail delivery than the PHP mail () function which have a solid reputation for helping to conduct throngs of your mails into junk.

您最好的选择是使用 SMTP(简单邮件传输协议)代替 PHP mail() 函数发送邮件。SMTP 是行业邮件标准,它使用正确的身份验证确保比 PHP mail () 函数更多的邮件传递,PHP mail () 函数在帮助将大量邮件变成垃圾邮件方面享有盛誉。

A simple fix for this malady is to install and configure this plugin Post SMTP Mailer/Email Log

解决此问题的一个简单方法是安装和配置此插件Post SMTP Mailer/Email Log

回答by Greg

I logged into Hotmail, opened the Junk folder and ticked the box next to one of the messages from my form. Up top there appears a "...", click that. Create a rule (delete others by clicking the X) that allows all from the domain your form is on, that moves it to your Inbox.

我登录了 Hotmail,打开了垃圾邮件文件夹,然后勾选了表单中其中一封邮件旁边的框。顶部出现一个“...”,点击它。创建一个规则(通过单击 X 删除其他人),允许来自表单所在域的所有内容,将其移动到您的收件箱。

That's how I did it. Except I used the rule that says anything with "These words" in the subject line (see the Contact Form 7 settings and put "those words" there before the "[your-subject]").

我就是这样做的。除了我使用的规则在主题行中使用“这些词”表示任何内容(请参阅联系表 7 设置并将“那些词”放在“[您的主题]”之前)。