
wp mail smtp
Do you want to set up WP Mail SMTP on your WordPress site? WP Mail SMTP is the best WordPress SMTP plugin which allows you to easily send WordPress emails using a secure mail transfer protocol or SMTP. In this article, we will show you how to easily set up WP Mail SMTP with any host.
您是否要在WordPress网站上设置WP Mail SMTP ? WP Mail SMTP是最好的WordPress SMTP插件,它使您可以使用安全的邮件传输协议或SMTP轻松发送WordPress电子邮件。 在本文中,我们将向您展示如何轻松地使用任何主机设置WP Mail SMTP。

什么是WP Mail SMTP? 为什么需要它发送WordPress电子邮件? (What is WP Mail SMTP? Why You Need it to Send WordPress Emails?)
WP Mail SMTP is a WordPress plugin which allows you to send WordPress emails using an SMTP server. This ensures that your WordPress emails are delivered using the standard mail protocol.
WP Mail SMTP是WordPress插件,可让您使用SMTP服务器发送WordPress电子邮件。 这样可以确保您的WordPress电子邮件是使用标准邮件协议发送的。
Once you setup your WordPress site, you may notice that you are not getting any emails from WordPress. This includes WordPress notification emails and emails from your WordPress contact form plugin.
设置WordPress网站后 ,您可能会注意到您没有收到来自WordPress的任何电子邮件。 这包括WordPress通知电子邮件和WordPress联系人表单插件发送的电子邮件。
The reason for this is WordPress uses PHP mail()
function to send emails. Most WordPress hosting companies do not configure it properly, and some simply disable it to prevent abuse.
原因是WordPress使用PHP mail()
函数发送电子邮件。 大多数WordPress托管公司没有正确配置它,有些只是禁用它以防止滥用。
The easiest fix for this issue is to use SMTP to send WordPress emails.
解决此问题的最简单方法是使用SMTP发送WordPress电子邮件。
SMTP is the secure mail transfer protocol, and it is pretty much the standard way to send emails. It requires you to login to a mail server to send emails which prevents the abuse of the hosting server and improves email deliverability.
SMTP是安全的邮件传输协议,它几乎是发送电子邮件的标准方法。 它要求您登录到邮件服务器以发送电子邮件,以防止滥用托管服务器并提高电子邮件的可传递性。
Most WordPress hosting companies offer free business email addresses which you can use with your own domain name. We recommend setting up a separate email address for your WordPress website. It can be anything like support@example.com or info@example.com.
大多数WordPress托管公司都提供免费的企业电子邮件地址 ,您可以将其与自己的域名一起使用。 我们建议为您的WordPress网站设置一个单独的电子邮件地址。 它可以是诸如support@example.com或info@example.com之类的任何内容。
Once you have created the email address, you can use it to send WordPress emails. You will still need to tell WordPress how to connect with your mail server.
创建电子邮件地址后,您可以使用它发送WordPress电子邮件。 您仍然需要告诉WordPress如何与您的邮件服务器连接。
This is where WP Mail SMTP plugin comes in. It allows you to send WordPress emails via SMTP by entering your SMTP credentials.
这是WP Mail SMTP插件的来源。它允许您通过输入SMTP凭据通过SMTP发送WordPress电子邮件。
WP Mail SMTP is the most popular SMTP solution for WordPress (currently used by over 1 million websites). It’s maintained by the same team as WPForms.
WP Mail SMTP是最流行的WordPress SMTP解决方案(当前有超过一百万个网站使用)。 它由与WPForms相同的团队维护 。
The first thing you need to do is install and activate the WP Mail SMTP plugin. For more details, see our step by step guide on how to install a WordPress plugin.
您需要做的第一件事是安装并激活WP Mail SMTP插件。 有关更多详细信息,请参阅有关如何安装WordPress插件的分步指南。
Upon activation, you need to visit Settings » WP Mail SMTP page to configure the plugin settings.
激活后,您需要访问设置»WP Mail SMTP页面以配置插件设置。

You need to enter your SMTP settings to use WP Mail SMTP. The first part of the settings will be similar regardless of your hosting company. It includes the following settings:
您需要输入SMTP设置才能使用WP Mail SMTP。 无论托管公司如何,设置的第一部分都是相似的。 它包括以下设置:
- From Email – This is the email address which will be used to send all WordPress emails. 来自电子邮件 –这是将用于发送所有WordPress电子邮件的电子邮件地址。
- From Name – This name will be used to send emails. We recommend using your website’s title as from name. 发件人名称 -此名称将用于发送电子邮件。 我们建议您使用网站标题作为名称。
- Mailer – You need to select ‘Other SMTP’ here as you will be sending emails using your hosts SMTP serverMailer –您需要在此处选择“其他SMTP”,因为您将使用主机SMTP服务器发送电子邮件
- Return Path – Check this box to receive delivery notifications or bounced messages.返回路径 –选中此框以接收传递通知或退回邮件。
Note: If you want to use third-party mailers, then you can follow this guide to send WordPress emails via Gmail SMTP. We also have a similar guide for Sendinblue SMTP setup.
注意:如果要使用第三方邮件,则可以按照本指南通过Gmail SMTP发送WordPress电子邮件 。 我们还为Sendinblue SMTP设置提供了类似的指南。
If you want to continue using your host, then you need to select Other SMTP and enter the SMTP server settings provided by hosting company.
如果要继续使用主机,则需要选择其他SMTP,然后输入托管公司提供的SMTP服务器设置。
- SMTP Host – This is the SMTP host address provided by your hosting company. SMTP主机 -这是您的托管公司提供的SMTP主机地址。
- Encryption – The encryption method used by your mail server to send emails. Usually it is TLS. 加密 –邮件服务器用来发送电子邮件的加密方法。 通常是TLS。
- SMTP Port – This is the port used by outgoing mail server.SMTP端口 –这是传出邮件服务器使用的端口。
- Auto TLS – This setting should be set to On自动TLS –此设置应设置为“开”
- Authentication – Needs to be On身份验证 –需要开启
- SMTP Username – This is usually the email address you are using to send emailsSMTP用户名 -这通常是您用于发送电子邮件的电子邮件地址
- SMTP Password – This is the password for the email account you are using to send emails. We don’t recommend saving SMTP password here. Instead, you nedd to store your password in SMTP密码 –这是您用于发送电子邮件的电子邮件帐户的密码。 我们不建议在此处保存SMTP密码。 相反,您需要将密码存储在wp-config.php file. wp-config.php文件中 。

These settings are required to connect with any SMTP server. However, their values may differ from one WordPress hosting company to another.
这些设置是连接任何SMTP服务器所必需的。 但是,它们的价值可能从一家WordPress托管公司到另一家WordPress托管公司不同。
Let’s see how to set up WP Mail SMTP plugin with different hosting companies.
让我们看看如何与不同的托管公司一起设置WP Mail SMTP插件。
在Bluehost上设置WP Mail SMTP (Setting up WP Mail SMTP on Bluehost)
Bluehost is one of the biggest hosting companies in the world and an officially recommended WordPress hosting provider.
Bluehost是世界上最大的托管公司之一,也是官方推荐的WordPress托管提供商。
We recommend Bluehost to all users who are starting a WordPress blog or making a small business website.
我们建议所有开始WordPress博客或建立小型企业网站的用户使用Bluehost 。
Following are the SMTP settings you will be using to connect WP Mail SMTP to Bluehost SMTP server.
以下是将WP Mail SMTP连接到Bluehost SMTP服务器所使用的SMTP设置。
- SMTP Host – mail.example.com SMTP主机 – mail.example.com
- Encryption – TLS加密 -TLS
- SMTP Port – 587SMTP端口 – 587
- SMTP Username – Your email address (e.g. wordpress@example.com)SMTP用户名 –您的电子邮件地址(例如wordpress@example.com)
- SMTP Password – Your email account password SMTP密码 –您的电子邮件帐户密码

在SiteGround上设置WP Mail SMTP (Setting up WP Mail SMTP on SiteGround)
SiteGround is another popular WordPress hosting company. They offer excellent shared, managed, and WooCommerce hosting services.
SiteGround是另一家受欢迎的WordPress托管公司。 他们提供出色的共享,托管和WooCommerce托管服务。
Following are the SMTP settings you will be using to connect WP Mail SMTP with SiteGround servers.
以下是用于将WP Mail SMTP与SiteGround服务器连接的SMTP设置。
- SMTP Host – example.com SMTP主机 – example.com
- Encryption – TLS加密 -TLS
- SMTP Port – 587SMTP端口 – 587
- SMTP Username – Your email address (e.g. wordpress@example.com)SMTP用户名 –您的电子邮件地址(例如wordpress@example.com)
- SMTP Password – Your email account password SMTP密码 –您的电子邮件帐户密码

在HostGator上设置WP Mail SMTP (Setting up WP Mail SMTP on HostGator)
HostGator is another popular WordPress hosting company. WPBeginner is hosted with HostGator, and we have been using them for over 10 years.
HostGator是另一家受欢迎的WordPress托管公司。 WPBeginner由HostGator托管,我们使用它们已有10多年了。
Following are the SMTP settings you will be using to connect WP Mail SMTP with HostGator servers.
以下是用于将WP Mail SMTP与HostGator服务器连接的SMTP设置。
- SMTP Host – full.servername.com SMTP主机 – full.servername.com
- Encryption – SSL加密 -SSL
- SMTP Port – 465SMTP端口 – 465
- SMTP Username – Your email address (e.g. wordpress@example.com)SMTP用户名 –您的电子邮件地址(例如wordpress@example.com)
- SMTP Password – Your email account password SMTP密码 –您的电子邮件帐户密码

You will notice that instead of using your domain as the SMTP Host, it uses the server name. You can find the server name from your cPanel hosting dashboard.
您会注意到,它使用服务器名称代替将您的域用作SMTP主机。 您可以从cPanel托管信息中心找到服务器名称。
Simply, login to your cPanel, and you will see the full server name in the right column towards the bottom.
简单地,登录到您的cPanel,您将在底部的右栏中看到完整的服务器名称。

在DreamHost上设置WP Mail SMTP (Setting up WP Mail SMTP on DreamHost)
DreamHost is a popular WordPress hosting company. They have been around since 1997 (way before WordPress, Google, or Facebook) and offer shared WordPress hosting, managed, and VPS hosting plans.
DreamHost是一家受欢迎的WordPress托管公司。 自1997年以来(WordPress,Google或Facebook之前),它们就存在了,并提供共享的WordPress托管 ,托管和VPS托管计划。
Following are the SMTP settings you will be using to connect WP Mail SMTP with DreamHost servers.
以下是将WP Mail SMTP与DreamHost服务器连接所使用的SMTP设置。
- SMTP Host – full.servername.com SMTP主机 – full.servername.com
- Encryption – SSL加密 -SSL
- SMTP Port – 465SMTP端口 – 465
- SMTP Username – Your email address (e.g. wordpress@example.com)SMTP用户名 –您的电子邮件地址(例如wordpress@example.com)
- SMTP Password – Your email account password SMTP密码 –您的电子邮件帐户密码

You will notice that Dreamhost doesn’t use your domain name as the mail server. Instead, they use different servers to manage emails, and you will need to find out which one is used by your hosting account.
您会注意到Dreamhost不会将您的域名用作邮件服务器。 相反,它们使用不同的服务器来管理电子邮件,并且您将需要找出托管帐户使用的服务器。
You can do this by logging into your DreamHost hosting panel and then going to Support » Data Centers page. From here, you need to scroll down to the mail service section.
您可以通过登录DreamHost托管面板,然后转到支持»数据中心页面来执行此操作。 从这里,您需要向下滚动到邮件服务部分。

You will find the name of the email cluster under the details column next to your domain name.
您将在域名旁边的详细信息列下找到电子邮件群集的名称。
Next, you need to visit DreamHost’s email configuration page and scroll down to ‘Where to find your mail hostname (cluster) name’ section. Here you can match your email cluster with the names in the table and copy the outgoing server address next to it.
接下来,您需要访问DreamHost的电子邮件配置页面,并向下滚动到“在哪里找到您的邮件主机名(集群)名称”部分。 在这里,您可以将电子邮件群集与表中的名称进行匹配,并在其旁边复制外发服务器地址。

在InMotion主机上设置WP Mail SMTP (Setting up WP Mail SMTP on InMotion Hosting)
Following are the SMTP settings you will be using to connect WP Mail SMTP with InMotion Hosting servers.
以下是将WP Mail SMTP与InMotion Hosting服务器连接所使用的SMTP设置。
- SMTP Host – server##.inmotionhosting.com SMTP主机 – server ##。inmotionhosting.com
- Encryption – SSL加密 -SSL
- SMTP Port – 465SMTP端口 – 465
- SMTP Username – Your email address (e.g. wordpress@example.com)SMTP用户名 –您的电子邮件地址(例如wordpress@example.com)
- SMTP Password – Your email account password SMTP密码 –您的电子邮件帐户密码

Note: In the SMTP host field, you need to replace ## with your server number. You can find this by logging in to your cPanel dashboard and then clicking on AMP details icon.
注意:在SMTP主机字段中,您需要将##替换为服务器号。 您可以通过登录cPanel仪表板,然后单击AMP详细信息图标来找到它。

在GoDaddy上设置WP Mail SMTP (Setting up WP Mail SMTP on GoDaddy)
GoDaddy is world’s most popular domain name registrar, managing more than 76 million domain names for over 17.5 million customers. They also offer different hosting plans (For details see our article on the difference between domain name and web hosting).
GoDaddy是全球最受欢迎的域名注册商 ,为超过1750万客户管理着超过7600万个域名。 他们还提供了不同的托管计划(有关详细信息,请参阅有关域名和网络托管之间区别的文章)。
Following are the SMTP settings you will be using to connect WP Mail SMTP with GoDaddy shared hosting plans.
以下是用于将WP Mail SMTP与GoDaddy共享托管计划连接的SMTP设置。
- SMTP Host – mail.example.com SMTP主机 – mail.example.com
- Encryption – TLS加密 -TLS
- SMTP Port – 587SMTP端口 – 587
- SMTP Username – Your email address (e.g. wordpress@example.com)SMTP用户名 –您的电子邮件地址(例如wordpress@example.com)
- SMTP Password – Your email account password SMTP密码 –您的电子邮件帐户密码

在iPage上设置WP Mail SMTP (Setting up WP Mail SMTP on iPage)
Following are the SMTP settings you will be using to connect WP Mail SMTP with iPage hosting servers.
以下是用于将WP Mail SMTP与iPage托管服务器连接的SMTP设置。
- SMTP Host – smtp.ipage.com SMTP主机 – smtp.ipage.com
- Encryption – TLS加密 -TLS
- SMTP Port – 587SMTP端口 – 587
- SMTP Username – Your email address (e.g. wordpress@example.com)SMTP用户名 –您的电子邮件地址(例如wordpress@example.com)
- SMTP Password – Your email account password SMTP密码 –您的电子邮件帐户密码

在GreenGeeks上设置WP Mail SMTP (Setting up WP Mail SMTP on GreenGeeks)
Following are the SMTP settings you will be using to connect WP Mail SMTP with GreenGeeks.
以下是用于将WP Mail SMTP与GreenGeeks连接的SMTP设置。
- SMTP Host – mail.example.com SMTP主机 – mail.example.com
- Encryption – SSL加密 -SSL
- SMTP Port – 465SMTP端口 – 465
- SMTP Username – Your email address (e.g. wordpress@example.com)SMTP用户名 –您的电子邮件地址(例如wordpress@example.com)
- SMTP Password – Your email account password SMTP密码 –您的电子邮件帐户密码

在JustHost上设置WP Mail SMTP (Setting up WP Mail SMTP on JustHost)
Following are the SMTP settings you will be using to connect WP Mail SMTP with JustHost.
以下是将WP Mail SMTP与JustHost连接所使用的SMTP设置。
- SMTP Host – mail.example.com SMTP主机 – mail.example.com
- Encryption – SSL加密 -SSL
- SMTP Port – 465SMTP端口 – 465
- SMTP Username – Your email address (e.g. wordpress@example.com)SMTP用户名 –您的电子邮件地址(例如wordpress@example.com)
- SMTP Password – Your email account password SMTP密码 –您的电子邮件帐户密码

使用第三方电子邮件服务设置WP Mail SMTP (Setting up WP Mail SMTP with Third-Party Email Services)
Some managed WordPress hosting companies do not offer email service as part of their hosting plan. In that case, you will need to use a third-party email service to send WordPress emails using SMTP.
一些托管的WordPress托管公司不提供电子邮件服务作为其托管计划的一部分。 在这种情况下,您将需要使用第三方电子邮件服务来通过SMTP发送WordPress电子邮件。
The best way to send WordPress emails using SMTP is by using G Suite (formerly Google Apps for Work). It allows you to create professional business email addresses and use your existing domain name with popular Google apps like Gmail, Calendar, Google Drive, and more.
使用SMTP发送WordPress电子邮件的最佳方法是使用G Suite (以前称为Google Apps for Work)。 它使您可以创建专业的企业电子邮件地址,并将现有的域名与Gmail,日历,Google云端硬盘等流行的Google应用程序结合使用。
WP Mail SMTP allows you to easily configure WordPress to use Gmail servers for sending emails. This includes G Suite as well as your regular Gmail account. For detailed instructions, see our step by step guide on how to send WordPress emails using Gmail SMTP server.
WP Mail SMTP允许您轻松配置WordPress以使用Gmail服务器发送电子邮件。 这包括G Suite以及您的常规Gmail帐户。 有关详细说明,请参阅有关如何使用Gmail SMTP服务器发送WordPress电子邮件的分步指南。
You can also use MailGun to send WordPress emails. For details, see this guide on how to send WordPress emails via MailGun.
您还可以使用MailGun发送WordPress电子邮件。 有关详细信息,请参阅本指南,了解如何通过MailGun发送WordPress电子邮件 。
WP Mail SMTP also allows you to choose SendGrid as your mailer. You will just need to enter your API key which you can find under your SendGrid account.
WP Mail SMTP还允许您选择SendGrid作为邮件程序。 您只需要输入可以在SendGrid帐户下找到的API密钥即可。
We hope this article helped you learn how to set up WP Mail SMTP with any host. You may also want to see our guide on why you should never use WordPress to send your Newsletter emails.
我们希望本文能帮助您学习如何与任何主机一起设置WP Mail SMTP。 您可能还想查看我们的指南,以了解为什么不应该使用WordPress发送时事通讯电子邮件的原因 。
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在Twitter和Facebook上找到我们。
翻译自: https://www.wpbeginner.com/plugins/how-to-set-up-wp-mail-smtp-with-any-host-ultimate-guide/
wp mail smtp