如何设置WordPress电子邮件日志(和WooCommerce电子邮件日志)
Do you want to set up email logs on your WordPress or WooCommerce website?
您是否要在WordPress或WooCommerce网站上设置电子邮件日志?
Email logs allow you to monitor the emails sent by your WordPress site to the users. This helps you troubleshoot issues and check the status of email notifications sent by your WordPress website.
电子邮件日志可让您监视WordPress网站发送给用户的电子邮件。 这可以帮助您解决问题并检查WordPress网站发送的电子邮件通知的状态。
In this article, we will show you how to easily set up WordPress email logs and WooCommerce email logs.
在本文中,我们将向您展示如何轻松设置WordPress电子邮件日志和WooCommerce电子邮件日志。
After following this tutorial, you’ll be able to view the email logs directly from your WordPress admin area in an easy to understand format.
学习完本教程后,您将可以直接从WordPress管理区域以易于理解的格式查看电子邮件日志。
为什么要在WordPress或WooCommerce中设置电子邮件日志? (Why Set Up Email Logs in WordPress or WooCommerce?)
Whether you are running a small business website using WordPress or a WooCommerce store, WordPress automatically sends certain email notifications to your users.
无论您是使用WordPress还是WooCommerce商店运营小型企业网站 ,WordPress都会自动向您的用户发送某些电子邮件通知。
On a typical WordPress website, these emails include password reset emails, new user notification, password change notification, comments, and WordPress update notifications.
在典型的WordPress网站上,这些电子邮件包括密码重置电子邮件,新用户通知,密码更改通知,注释和WordPress更新通知。
If you are also running an online store, then email becomes even more important. WooCommerce will send out customer receipts, order details, new order notifications, and user account emails on a regular basis.
如果您还经营在线商店 ,那么电子邮件变得更加重要。 WooCommerce将定期发送客户收据,订单详细信息,新订单通知和用户帐户电子邮件。
As you can see, email notifications are crucial for your website to function properly and deliver the best user experience.
如您所见,电子邮件通知对于网站正常运行和提供最佳用户体验至关重要。
You need to make sure that those emails reach users’ inbox and don’t just disappear or end up in spam.
您需要确保这些电子邮件到达用户的收件箱,而不只是消失或最终成为垃圾邮件。
The best way to do this is by using a proper SMTP service provider to ensure email deliverability. For more details, see our guide on how to fix WordPress not sending email issue.
最好的方法是使用适当的SMTP服务提供商来确保电子邮件的可传递性。 有关更多详细信息,请参阅有关如何修复WordPress不发送电子邮件问题的指南 。
You would also want to see which emails are sent and to whom. This allows you to keep a record of email activity which comes in handy in several situations.
您还希望查看发送给谁的电子邮件。 这使您可以保留电子邮件活动的记录,该记录在某些情况下非常有用。
Following are just a few of those situations when email log comes in handy:
以下只是电子邮件日志派上用场时的其中几种情况:
- Ensure that email notifications are delivered promptly 确保及时发送电子邮件通知
-
Track your WordPress contact form plugin emails
跟踪您的WordPress联系人表单插件电子邮件
- You can see if emails sent by a plugin are working 您可以查看插件发送的电子邮件是否正常运行
- Keep a track of user activity using the email logs 使用电子邮件日志跟踪用户活动
-
Track user activity if you run a membership website or sell online courses
- Keep email log of your WooCommerce orders, reciepts, and customer notifications 保留您的WooCommerce订单,收据和客户通知的电子邮件日志
That being said, let’s see how to easily setup email logs on your WordPress or WooCommerce website.
话虽如此,让我们看看如何在WordPress或WooCommerce网站上轻松设置电子邮件日志。
在WordPress和WooCommerce中设置电子邮件日志 (Setting up Email Logs in WordPress & WooCommerce)
For this tutorial, we will be using the WP Mail SMTP plugin. It allows you to send WordPress emails using any SMTP service provider including Gmail, Outlook, SendGrid, Amazon SES, etc.
对于本教程,我们将使用WP Mail SMTP插件。 它允许您使用任何SMTP服务提供商(包括Gmail,Outlook,SendGrid,Amazon SES等)发送WordPress电子邮件。
步骤1.安装和设置WP Mail SMTP (Step 1. Install and Setup WP Mail SMTP)
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 WP Mail SMTP » Settings page to configure the plugin settings.
**后,您需要访问WP Mail SMTP»设置页面以配置插件设置。
First, you’ll need to enter your license key. You can find this information under your account on WP Mail SMTP website.
首先,您需要输入许可证**。 您可以在WP Mail SMTP网站上的帐户下找到此信息。
Simply, copy and paste your license key and then click on the Verify button.
只需复制并粘贴您的许可证**,然后单击“验证”按钮。
After that, you need to scroll down to select how you would like to send your WordPress emails under the Mailer section.
之后,您需要向下滚动以在Mailer部分下选择发送WordPress电子邮件的方式。
WP Mail SMTP works with any SMTP service. It comes with easy configuration options for the most popular SMTP service providers like Gmail, Outlook, Sendinblue, Mailgun, Sendgrid, Amazon SES, or Other SMTP services.
WP Mail SMTP可与任何SMTP服务一起使用。 它为最流行的SMTP服务提供商(如Gmail , Outlook , Sendinblue ,Mailgun,Sendgrid,Amazon SES或其他SMTP服务)提供了简单的配置选项。
Clicking on the mailer will show you instructions to set it up.
单击邮件程序将显示设置说明。
The default option is set to PHP mailer. We don’t recommend using that because it is not reliable. Since most WordPress hosting servers are not properly configured for emails, this option will mean that your WordPress emails may never reach users’ inbox or even spam folder.
默认选项设置为PHP mailer。 我们不建议使用它,因为它不可靠。 由于大多数WordPress托管服务器未针对电子邮件进行正确配置,因此此选项将意味着您的WordPress电子邮件可能永远不会到达用户的收件箱甚至是垃圾邮件文件夹。
We recommend using a provider like SendinBlue or Mailgun that’s optimized for best email deliverability.
我们建议使用经过优化的SendinBlue或Mailgun等提供程序,以实现最佳的电子邮件传递能力。
If you choose Other SMTP as your mailer option, then you’ll need to provide SMTP settings which you can get from your SMTP service providers website.
如果您选择“其他SMTP”作为邮件选项,则需要提供SMTP设置,您可以从SMTP服务提供商的网站获得该设置。
- SMTP Host: You smtp host address which usually looks like this smtp.yoursmtpserver.com SMTP主机:您的smtp主机地址通常看起来像这样smtp.yoursmtpserver.com
- Encryption: Usually it is either SSL or TLS 加密:通常是SSL或TLS
- SMTP Port: Usually it is 465 SMTP端口:通常是465
- Authentication: Turn on authentication 身份验证:打开身份验证
- Username: Username provided by your SMTP service usually it is your email address. 用户名:SMTP服务提供的用户名通常是您的电子邮件地址。
- Password: Password for your SMTP service 密码:您的SMTP服务的密码
After you have entered your mailer credentials, don’t forget to click on the ‘Save Settings’ button to store your settings.
输入邮件发件人凭据后,请不要忘记单击“保存设置”按钮来存储您的设置。
Bonus: It’s important to use a professional business email address to ensure your emails look trustworthy.
奖励:使用专业的企业电子邮件地址以确保您的电子邮件看起来可信赖非常重要。
步骤2.启用电子邮件日志功能 (Step 2. Enable Email Log Feature)
Now that you have set up mailer settings in the WP Mail SMTP plugin. It is time to turn on the email logging feature.
现在,您已经在WP Mail SMTP插件中设置了邮件程序设置。 现在是时候打开电子邮件日志记录功能了。
From the plugin’s settings page, switch to the ‘Email Log’ tab and check the box next to ‘Enable log’ option.
从插件的设置页面,切换到“电子邮件日志”标签,然后选中“启用日志”选项旁边的框。
The email log option will save general and troubleshooting information about each email message. Including the date and time, subject, email status, email addresses of the sender and recipient, BCC and CC, attachment, etc.
电子邮件日志选项将保存有关每封电子邮件的常规和故障排除信息。 包括日期和时间,主题,电子邮件状态,发件人和收件人的电子邮件地址,密件抄送和抄送,附件等。
The plugin also allows you to enable complete WordPress email logs. We don’t recommend enabling complete email logs because it would save all contents of the email including private or sensitive information in your WordPress database as plain text.
该插件还允许您启用完整的WordPress电子邮件日志。 我们不建议启用完整的电子邮件日志,因为它会将电子邮件的所有内容(包括私人或敏感信息)保存在WordPress数据库中为纯文本格式。
Don’t forget to click on the ‘Save settings’ button to save your changes.
不要忘记点击“保存设置”按钮来保存您的更改。
步骤3.测试WP Mail SMTP设置 (Step 3. Testing WP Mail SMTP Setup)
Now that you have set up the WP Mail SMTP plugin, let’s test it to make sure that everything is working as expected.
现在,您已经设置了WP Mail SMTP插件,让我们对其进行测试以确保一切都按预期进行。
WP Mail SMTP makes this step easy. Go to the plugins settings page WP Mail SMTP » Settings page and switch to the ‘Email Test’ tab.
WP Mail SMTP使此步骤变得容易。 转到插件设置页面WP Mail SMTP»设置页面,然后切换到“电子邮件测试”标签。
From here, simply enter your email address and click on the ‘Send Email’ button.
在这里,只需输入您的电子邮件地址,然后单击“发送电子邮件”按钮。
The plugin will now send a test email to the address you provided. It will then show you the status of the email delivery on screen.
插件现在将向您提供的地址发送测试电子邮件。 然后,它将在屏幕上向您显示电子邮件传递的状态。
步骤4.在WordPress中查看您的电子邮件日志 (Step 4. Viewing Your Email Logs in WordPress)
You can view your WordPress email logs at any time without leaving the WordPress admin area.
您可以随时查看WordPress电子邮件日志,而无需离开WordPress管理区域。
Simply go to WP Mail SMTP » Email Log page. You’ll see the log with a list of entries since you enabled the email log.
只需转到WP Mail SMTP»电子邮件日志页面。 自启用电子邮件日志以来,您将看到带有条目列表的日志。
To view entry details, take your mouse over it and then click on the ‘View’ link below it. This will open the email log entry with a detailed view.
要查看条目详细信息,请将鼠标悬停在其上,然后单击其下方的“查看”链接。 这将打开带有详细视图的电子邮件日志条目。
You can also use the search feature to look for entries by email address, subject & headers, or by content (if you enabled content logging).
您还可以使用搜索功能通过电子邮件地址,主题和标题或内容(如果启用了内容记录)来查找条目。
You can also delete older entries from your email log. You can use the ‘Delete’ link below any entry to delete a single entry.
您也可以从电子邮件日志中删除较旧的条目。 您可以使用任何条目下方的“删除”链接来删除单个条目。
You can also select multiple entries and click on the Bulk Actions drop-down menu to select ‘Delete’ and then click on the Apply button.
您还可以选择多个条目,然后单击“批量操作”下拉菜单以选择“删除”,然后单击“应用”按钮。
We hope this article helped you learn how to set up WordPress email logs and WooCommerce email logs. You may also want to see our guide on how to monitor user activity in WordPress with security audit logs.
我们希望本文能帮助您学习如何设置WordPress电子邮件日志和WooCommerce电子邮件日志。 您可能还希望查看我们的指南,该指南如何使用安全审核日志来监视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-setup-wordpress-email-logs-and-woocommerce-email-logs/