WP Mail SMTP by WPForms

Description

WordPress 电子邮件 SMTP 寄件插件

Having problems with your WordPress site not sending emails? You’re not alone. Over 1 million websites use WP Mail SMTP to send their emails reliabily.

Our goal is to make email deliverability easy and reliable. We want to ensure your emails reach the inbox.

WP Mail SMTP fixes your email deliverability by reconfiguring WordPress to use a proper SMTP provider when sending emails.

什么是SMTP?

SMTP (Simple Mail Transfer Protocol) is an industry standard for sending emails. Proper SMTP configuration helps increase email deliverability by using authentication.

Popular email clients like Gmail, Yahoo, and Office 365 are in a constant battle with email spammers. One of the things they look at is if an email is originating from the location it claims to be originating from.

If the proper authentication isn’t there, then emails either go in the SPAM folder or worst, don’t get delivered at all.

谷歌翻译:这是很多WordPress网站的问题,因为默认情况下,WordPress使用PHP邮件功能发送WordPress生成的电子邮件或任何联系表单插件,如WPForms的。

谷歌翻译:问题是大多数WordPress托管公司没有正确配置他们的服务器来发送PHP电子邮件。

谷歌翻译:两者的组合导致您的WordPress电子邮件无法送达。

WP Mail SMTP如何工作?

WP Mail SMTP plugin easily resolves email delivery problems by improving and changing how your WordPress site sends email. We reconfigure the wp_mail() function to either use proper SMTP host credentials or leverage a built-in SMTP mail provider.

When using one of our built-in SMTP mail provider integrations (recommended), emails are sent using the provider’s direct API. This means even if your web host is blocking SMTP ports, your emails still send successfully.

谷歌翻译:WP Mail SMTP插件包括四种不同的SMTP设置选项:

WP Mail SMTP plugin includes many different SMTP setup options:

  1. Mailgun SMTP
  2. SendGrid SMTP
  3. Gmail SMTP
  4. Microsoft SMTP (Outlook.com and Office 365) [Pro]
  5. Amazon SES SMTP [Pro]
  6. 所有其他SMTP

谷歌翻译:对于所有选项,您可以为外发电子邮件指定“来自姓名”和“电子邮件地址”。

谷歌翻译:我们决定将其全部集于一身,而不是让用户为不同的SMTP提供商使用不同的SMTP插件和工作流程。 这就是使WP Mail SMTP成为WordPress的最佳SMTP解决方案的原因。

Mailgun SMTP

谷歌翻译:Mailgun SMTP是一种流行的SMTP服务提供商,允许您发送大量电子邮件。 它们允许您每月免费发送前10,000封电子邮件。

谷歌翻译:WP Mail SMTP插件提供与MailGun的本机集成。 您所要做的就是连接您的Mailgun帐户,您将提高您的电子邮件传送能力。

有关详细信息,请阅读我们的Mailgun文档

Gmail SMTP

谷歌翻译:博主和小企业主通常不想使用第三方SMTP服务。 那么您可以使用Gmail或G Suite帐户来收发SMTP电子邮件。

谷歌翻译:这允许您使用专业电子邮件地址并改善电子邮件的可传递性。

谷歌翻译:与其他Gmail SMTP插件不同,我们的Gmail SMTP选项使用OAuth对您的Google帐户进行身份验证,确保您的登录信息100%安全。

有关详细信息,请阅读我们的 Gmail文档

SendGrid SMTP

谷歌翻译:SendGrid有一个免费的SMTP计划,您可以使用它每天发送多达100封电子邮件。 通过我们的本机SendGrid SMTP集成,您可以在WordPress站点上轻松安全地设置SendGrid SMTP。

有关详细信息,请阅读我们的 SendGrid文档

Microsoft SMTP (Outlook.com and Office 365)

Many business use Outlook.com or Office 365 to their to power their email. For those users, the Microsoft mailer can be a great option. This integration allows you to use your existing Outlook.com or Office 365 account to send your emails reliably.

Amazon SES SMTP

Advanced or technical users can harness the power of Amazon AWS (Amazon Web Services) with the Amazon SES mailer. With this integration, you can send a high volume of emails at a very reasonable rate.

其他 SMTP

谷歌翻译:WP Mail SMTP插件还适用于所有主要的电子邮件服务,如Gmail,Yahoo,Outlook,Microsoft Live以及提供SMTP的任何其他电子邮件发送服务。

您可以设置以下选项:

  • 指定一个SMTP主机。
  • 指定一个SMTP端口。
  • 选择SSL / TLS加密。
  • 是否选择使用SMTP身份验证。
  • 指定SMTP用户名和密码。

谷歌翻译:要查看热门服务的推荐设置以及故障排除提示,请查看我们的SMTP文档

We hope that you find WP Mail SMTP plugin helpful!

WP Mail SMTP PRO

In addition to native Microsoft and Amazon SES integrations, WP Mail SMTP Pro provides access to many other powerful features and services.

Click here to purchase WP Mail SMTP Pro now!

Email Log

Email Logging lets you log and view all emails sent from your site. Email logs are helpful for storing emails for your records, auditing outgoing emails, and debugging during site development.

Manage WordPress Emails and Notifications

The Manage Notification feature gives you full control over which email notifications WordPress sends. This means you can disable different WordPress notification emails. Don’t want to receive emails when new users are created? No problem, turn it off.

Expert Support

We provide limited support for the WP Mail SMTP plugin on the WordPress.org forums. Access to our world class one-on-one email support is available to WP Mail SMTP Pro users.

White Glove Setup

Our White Glove Setup service is a great option that anyone can benefit from. Whether you don’t have the time or maybe you feel a bit in over your head – we’ve got you covered.

You can sit back and relax while we set up everything for you. White glove setup includes WP Mail SMTP plugin installation and setup, configuration adjustments to your DNS for proper email domain name verification, Mailgun setup, and final testing to confirm everything is passing with flying colors.

Security

The WP Mail SMTP team takes security very seriously. Not only does the plugin follow all security best practices, but we have several options available to ensure your site is safe and secure.

  • Direct SMTP mailer integrations (recommended), such as Google and Mailgun, use the official provider APIs. This means you never enter your username or password in the plugin settings and these credentials are not stored in the database. Instead, we use tokens or API keys which are much more secure.

  • When using Other SMTP mailer, we provide the option to insert your password in your wp-config.php file, so it’s not visible in your WordPress settings or saved in the database.

贡献人员名单

WP Mail SMTP plugin was originally created by Callum Macdonald. It is now owned and maintained by the team behind WPForms – the best drag & drop form builder for WordPress.

You can try the free version of WPForms plugin to see why it’s the best in the market.

下一步是什么

If you like this plugin, then consider checking out our other projects:

  • OptinMonster – Get More Email Subscribers with the most popular conversion optimization plugin for WordPress.
  • MonsterInsights – See the Stats that Matter and Grow Your Business with Confidence. Best Google Analytics Plugin for WordPress.
  • SeedProd – Jumpstart your website with the #1 Coming Soon & Maintenance Mode Plugin for WordPress.

Visit WPBeginner to learn from our WordPress Tutorials and find out about other best WordPress plugins.

Screenshots

  • WP Mail SMTP 设置页面
  • Gmail/G Suite 设置
  • Mailgun 设置
  • SendGrid 设置
  • SMTP 设置
  • 发送测试邮件

Installation

  1. Install WP Mail SMTP by WPForms either via the WordPress.org plugin repository or by uploading the files to your server. (See instructions on how to install a WordPress plugin)
  2. 谷歌翻译:通过WPForms激活WP Mail SMTP。
  3. 谷歌翻译:导航到WordPress管理员中WP Mail SMTP的“设置”区域。
  4. 谷歌翻译:选择您的SMTP选项(Mailgun SMTP,SendGrid SMTP,Gmail SMTP或其他SMTP),然后按照说明进行设置。
  5. Need more help? Get support with WP Mail SMTP PRO.

FAQ

我可以使用此插件去发送Gmail,G Suite,Outlook.com,Office 365,Hotmail,Yahoo或AOL SMTP的电子邮件吗?

谷歌翻译:是! 我们有大量文档,涵盖了设置SMTP最流行的电子邮件服务。

谷歌翻译:阅读我们的文档查看每项服务的正确SMTP设置。

救命! 我需要支持/我有一个问题。

谷歌翻译:有关详细信息,请阅读我们的支持政策

Limited support is available for WP Mail SMTP users via WordPress.org support forums.

Email support and set up assistance is available to WP Mail SMTP Pro users.

我发现了一个bug,现在做啥?

谷歌翻译:如果您偶然发现了一个错误,最好的报告位置是 WP Mail SMTP GitHub存储库。 GitHub是插件积极开发的地方,在那里发布将让我们的开发人员(我和Slava)很快看到你的问题。 发布后,我们将审核您的错误报告并对错误进行分类。 创建问题时,可以添加到报表中的详细信息越多,解决错误的速度就越快。

谷歌翻译:你可以在插件中添加功能x,y或z吗?

谷歌翻译:简短回答:也许吧。

By all means please contact us to discuss features or options you’d like to see added to the plugin. We can’t guarantee to add all of them, but we will consider all sensible requests. We can be contacted here:
https://wpmailsmtp.com/contact/

Reviews

July 16, 2019
I use Google Suite, BlueHost, and WP-Forms. I also use other form plugins at the moment but plan to resort to Caldera. After setting up Google API and going through the process of allowing my domain access to my Google account I kept getting an error involving Mod_Security. I contacted my host provider and they whitelisted the plugin and disabled mod_security. It still didn't work. I contacted them 3 times regarding this that led to no solutions. No one could help me and just kept pointing in different directions. I found Post-Smtp that is working fine for all 3 of my form plugins.
July 16, 2019
Excelente plugin para solucionar los problemas de envio de email. Facil de configurar. Gracias!
July 11, 2019
This plugin is wonderful! Never left to be desired and helped a lot to my store. I can only thank for the great work!
July 10, 2019
We wan't to route email from all our clients through Mandrill using SMTP settings provided by Mandrill. It uses a TLS connection. I have tested and used Postfix as a relay using the same SMTP credentials and it works. I also used the same credentials using a Drupal module and it works fine. This plugin just can't seem to send email via Mandrill SMTP server using TLS for encryption. Wasted half a day on this. GMail and Sendgrid settings work fine. Will give it a better rating once this issue is sorted out.
July 7, 2019
This plugin sorted my issue with emails not being sent to users after registration. Thanks a lot.
Read all 378 reviews

Contributors & Developers

“WP Mail SMTP by WPForms” is open source software. The following people have contributed to this plugin.

Contributors

“WP Mail SMTP by WPForms” has been translated into 19 locales. Thank you to the translators for their contributions.

Translate “WP Mail SMTP by WPForms” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.5.1 – 2019-07-12

  • Fixed: Duplicated emails sent to the first recipient in a loop (and others not receiving their emails).

1.5.0 – 2019-07-09

  • Added: Loсo plugin support.
  • Added: “About us” admin area page.
  • Added: Display in debug output a possible conflicting plugin existence.
  • Added: Lots of actions and filters to improve flexibility of the plugin.
  • Changed: Plugin menu is now top level.
  • Changed: Hide secrets/API keys in page DOM in plugin admin area.
  • Changed: Do not save constant values into the database when plugin settings are saved.
  • Changed: Lots of i18n improvements to support translation for both free and paid version of the plugin.
  • Changed: Gmail mailer – allow to change From Name email header.
  • Changed: Gmail mailer – display email used to create a connection.
  • Changed: WordPress 4.9 is the minimum WordPress version we support.
  • Fixed: X-Mailer header should be present in all emails.
  • Fixed: PHP notices when migrating under certain circumstances from 0.x version of the plugin.
  • Fixed: Options::get_group() now supports values set via constants.

1.4.2 – 2019-03-23

  • 谷歌翻译:已更改:已测试到WordPress 5.1.x.
  • 谷歌翻译:更改:删除了TGMPA库。

1.4.1 – 2018-12-03

  • 并未翻译!Fixed: correctly process backslashes in SMTP passwords defined via constants.
  • 并未翻译!Changed: allow to send a Test Email when Default (none) mailer is selected in plugin settings.

1.4.0 – 2018-11-29

  • 并未翻译!Added: New option: Do Not Send – block emails from being sent.
  • 并未翻译!Added: New option: Send HTML or plain text emails when doing an Email Test.
  • 并未翻译!Added: New option: Mailgun region selection – US and EU (US is default to preserve compatibility).
  • 并未翻译!Fixed: Compatibility with WordPress 3.6+.
  • 并未翻译!Fixed: Compatibility with WordPress 5.0.
  • 并未翻译!Fixed: Constants usage is much more reliable now, works correctly on Multisite. Constants are global accross the whole network.
  • 并未翻译!Fixed: Preserve multipart emails when using Sendgrid/Mailgun mailers (were converted to HTML-only).
  • 并未翻译!Fixed: Security hardening.
  • 并未翻译!Changed: Prefill Email Test page From field with currently logged in user email.
  • 并未翻译!Changed: Update libraries: google/apiclient-services, google/auth, phpseclib/phpseclib and their dependecies.
  • 并未翻译!Changed: Display in debug output cURL version if Gmail mailing failed.
  • 并未翻译!Changed: Display in debug output OpenSSL version if it exists if Gmail/SMTP mailing failed.
  • 并未翻译!Changed: Display plugin version in dashboard error notice when emailing failed.
  • 并未翻译!Changed: Do not allow to send Test Email if mailer not configured properly.
  • 并未翻译!Changed: Notify in plugin admin area that Gmail doesn’t allow to redefine From Name/Email etc.
  • 并未翻译!Changed: List all constants with descriptions in plugin main file: wp_mail_smtp.php.
  • 并未翻译!Changed: TGMPA: change descriptions from “Required” to “Recommended” (labels were incorrect).

1.3.3 – 2018-07-05

  • 并未翻译!Fixed: Compatibility with other plugins, that are using Google Service or Google Client classes.
  • 并未翻译!Changed: Optimize code loading.

1.3.2 – 2018-06-29

  • 并未翻译!Make sure that other plugins/themes are not conflicting with our TGMPA library.

1.3.1 – 2018-06-29

  • 并未翻译!Fixed: Other SMTP: Clear new Debug messages about failed email delivery on next successful email sending.
  • 并未翻译!Fixed: Introduce conditional autoloader to workaround Gmail PHP 5.5 requirement and its library compatibility issues vs PHP 5.3+ minimum viable plugin version.

1.3.0 – 2018-06-28

  • 并未翻译!Added: New option: force From Email rewrite regardless of the current value.
  • 并未翻译!Added: New option: force From Name rewrite regardless of the current value.
  • 并未翻译!Added: New option: remove all plugin data on plugin uninstall (when user deletes it).
  • 并未翻译!Added: Notify site admins in wp-admin area with a notice about last failed email delivery. Cleans up on successful delivery.
  • 并未翻译!Added: Notify site admins in wp-admin area with a notice about possible compatibility issues with other SMTP and email delivery plugins.
  • 并未翻译!Added: Improve User Debug Experience when doing Email Test – display helpful description and steps to fix the issue.
  • 并未翻译!Added: New users: provide default SMTP Port value for new users based on Encryption selection.
  • 并未翻译!Added: New users: notify about not configured plugin settings.
  • 并未翻译!Added: New users: Recommend free WPForms Lite plugin for those who don’t have it.
  • 并未翻译!Added: SendGrid/Mailgun: provide support for multipart/alternative types of emails.
  • 并未翻译!Added: Gmail: new button to remove connection and to connect a new Google account.
  • 并未翻译!Fixed: Support plugin installation into /mu-plugins/ directory.
  • 并未翻译!Fixed: SendGrid: required text/plain part of email being the first one – fixes plain text emails not having links.
  • 并未翻译!Fixed: SendGrid and Mailgun: improperly sending plain text emails in html format.
  • 并未翻译!Fixed: SMTP Debug output was empty in some cases.
  • 并未翻译!Fixed: Compatibility with lots of other plugins that use Google Analytics library of different versions.
  • 并未翻译!Fixed: “client_id is empty” is no more a problem, should be fixed.
  • 并未翻译!Changed: For SendGrid and Mailgun allow using custom defined attachments names if present. Fallback to file name.
  • 并未翻译!Changed: Gmail: switch to a wider scope to prevent possible issues in certain circumstances.
  • 并未翻译!Changed: Remove whitespaces start/end of keys, secrets etc.
  • 并未翻译!Changed: Improved helpful description tests of various options.
  • 并未翻译!Changed: Improved plugin autoloading functionality.

1.2.5 – 2017-02-05

  • 并未翻译!Fixed: Return path can’t be turned off.
  • 并未翻译!Fixed: Authentication sometimes can’t be turned off.
  • 并未翻译!Fixed: Auto TLS sometimes can’t be turned off.
  • 并未翻译!Fixed: BCC support for Gmail was broken.
  • 并未翻译!Fixed: Debug output improved to handle SELinux and grsecurity.
  • 并未翻译!Fixed: Strip slashes from plugin settings (useful for From Name option).
  • 并未翻译!Fixed: Change the way sanitization is done to prevent accidental removal of useful data.
  • 并未翻译!Fixed: Plugin activation will not overwrite settings back to defaults.
  • 并未翻译!Fixed: Properly set Auto TLS option on plugin activation.
  • 并未翻译!Fixed: Providers autoloading improved for certain Windows-based installs.
  • 并未翻译!Fixed: Use the proper path to load translations from plugin’s /languages directory.
  • 并未翻译!Changed: Do not autoload on each page request plugin settings from WordPress options table.
  • 并未翻译!Changed: Do not autoload Pepipost classes unless it’s saved as active mailer in settings.

1.2.4 – 2017-01-28

  • 并未翻译!Fixed: Improved escaping in debug reporting.

1.2.3 – 2017-01-22

  • 并未翻译!Fixed: Gmail tokens were reset after clicking Save Settings.
  • 并未翻译!Fixed: Slight typo in Gmail success message.

1.2.2 – 2017-12-27

  • 并未翻译!Fixed: Correctly handle Mailgun debug message for an incorrect api key.
  • 并未翻译!Fixed: Fatal error for Gmail and SMTP mailers with Nginx web-server (without Apache at all).
  • 并未翻译!Changed: Update X-Mailer emails header to show the real sender with a mailer and plugin version.

1.2.1 – 2017-12-21

  • 并未翻译!Fixed: Failed SMTP connections generate fatal errors.

1.2.0 – 2017-12-21

  • 并未翻译!Fixed: Decrease the factual minimum WordPress version from 3.9 to 3.6.
  • 并未翻译!Changed: Improve debug output for all mail providers.

1.1.0 – 2017-12-18

  • 并未翻译!Added: New option “Auto TLS” for SMTP mailer. Default is enabled. Migration routine for all sites.
  • 并未翻译!Changed: Improve debug output – clear styles and context-aware content.
  • 并未翻译!Changed: Better exceptions handling for Google authentication process.
  • 并未翻译!Changed: Do not sanitize passwords, api keys etc – as they may contain special characters in certain order and sanitization will break those values.
  • 并未翻译!Changed: Improve wording of some helpful texts inside plugin admin area.
  • 并未翻译!Fixed: Do not include certain files in dependency libraries that are not used by Google mailer. This should stop flagging plugin by Wordfence and VaultPress.
  • 并未翻译!Fixed: Constants usage is working now, to define the SMTP password, for example.
  • 并未翻译!Fixed: Notice for default mailer.

1.0.2 – 2017-12-12

  • 并未翻译!Fixed: PHPMailer using incorrect SMTPSecure value.

1.0.1 – 2017-12-12

  • 并未翻译!Fixed: Global POST processing conflict.

1.0.0 – 2017-12-12

  • 并未翻译!Added: Automatic migration tool to move options from older storage format to a new one.
  • 并未翻译!Added: Added Gmail & G Suite email provider integration – without your email and password.
  • 并未翻译!Added: Added SendGrid email provider integration – using the API key only.
  • 并未翻译!Added: Added Mailgun email provider integration – using the API key and configured domain only.
  • 并未翻译!Added: New compatibility mode – for PHP 5.2 old plugin will be loaded, for PHP 5.3 and higher – new version of admin area and new functionality.
  • 并未翻译!Changed: The new look of the admin area.
  • 并未翻译!Changed: SMTP password field now has “password” type.
  • 并未翻译!Changed: SMTP password field does not display real password at all when using constants in wp-config.php to define it.
  • 并未翻译!Changed: Escape properly all translations.
  • 并未翻译!Changed: More helpful test email content (with a mailer name).

0.11.2 – 2017-11-28

  • 并未翻译!Added: Setting to hide announcement feed.
  • 并未翻译!Changed: Announcement feed data.

0.11.1 – 2017-10-30

  • 并未翻译!Fixed: Older PHP compatibility fix.

0.11 – 2017-10-30

  • 并未翻译!Added: Helper description to Return Path option.
  • 并未翻译!Added: Filter wp_mail_smtp_admin_test_email_smtp_debug to increase the debug message verbosity.
  • 并未翻译!Added: PHP 5.2 notice.
  • 并未翻译!Added: Announcement feed.
  • 并未翻译!Changed: Localization fixes, proper locale name.
  • 并未翻译!Changed: Code style improvements and optimizations for both HTML and PHP.
  • 并未翻译!Changed: Inputs for emails now have a proper type email, instead of a generic text.
  • 并未翻译!Changed: Turn off $phpmailer->SMTPAutoTLS when No encryption option is set to prevent error while sending emails.
  • 并未翻译!Changed: Hide Pepipost for those who are not using it.
  • 并未翻译!Changed: WP CLI support improved.

0.10.1

  • 并未翻译!Addition of Pepipost and cleanup of admin page.

0.10.0

  • 并未翻译!Addition of Pepipost and cleanup of admin page.

0.9.6

  • 并未翻译!Minor security fix, sanitize test email address.

0.9.5

  • 并未翻译!Minor security fix, hat tip JD Grimes.

0.9.4

  • 并未翻译!Improvement to the test email function, very low priority update.

0.9.3

  • 并未翻译!Fixing reported issue with passing by reference. props Adam Conway

0.9.2

  • 并未翻译!Removing the deprecation notice.

0.9.1

  • 并未翻译!$phpmailer->language became protected in WP 3.2, no longer unset on debug output.

0.9.0

  • 并未翻译!Typo in the From email description.
  • 并未翻译!Removed changelog from plugin file, no need to duplicate it.
  • 并未翻译!Optionally set $phpmailer->Sender from from email, helps with sendmail / mail().

0.8.7

  • 并未翻译!Fix for a long standing bug that caused an error during plugin activation.

0.8.6

  • 并未翻译!The Settings link really does work this time, promise. Apologies for the unnecessary updates.

0.8.5

  • 并未翻译!Bugfix, the settings link on the Plugin page was broken by 0.8.4.

0.8.4

  • 并未翻译!Minor bugfix, remove use of esc_html() to improve backwards compatibility.
  • 并未翻译!Removed second options page menu props ovidiu.

0.8.3

  • 并未翻译!Bugfix, return WPMS_MAIL_FROM_NAME, props nacin.
  • 并未翻译!Add Settings link, props Mike Challis https://profiles.wordpress.org/MikeChallis/

0.8.2

  • 并未翻译!Bugfix, call phpmailer_init_smtp() correctly, props Sinklar.

0.8.1

  • 并未翻译!Internationalisation improvements.

0.8

  • 并未翻译!Added port, SSL/TLS, option whitelisting, validate_email(), and constant options.

0.7

  • 并未翻译!Added checks to only override the default from name / email

0.6

  • 并未翻译!Added additional SMTP debugging output

0.5.2

  • 并未翻译!Fixed a pre 2.3 bug to do with mail from

0.5.1

  • 并未翻译!Added a check to display a warning on versions prior to 2.3

0.5.0

  • 并未翻译!Upgraded to match 2.3 filters which add a second filter for from name

0.4.2

  • 并未翻译!Fixed a bug in 0.4.1 and added more debugging output

0.4.1

  • 并未翻译!Added $phpmailer->ErroInfo to the test mail output

0.4

  • 并未翻译!Added the test email feature and cleaned up some other bits and pieces

0.3.2

  • 并未翻译!Changed to use register_activation_hook for greater compatability

0.3.1

  • 并未翻译!Added readme for WP-Plugins.org compatability

0.3

  • 并未翻译!Various bugfixes and added From options

0.2

  • 并未翻译!Reworked approach as suggested by westi, added options page

0.1

  • 并未翻译!Initial approach, copying the wp_mail function and replacing it