wordpress端口更改_如何在外发WordPress电子邮件中更改发件人名称

wordpress端口更改

Do you want to change the default sender name and email address for outgoing WordPress emails?

是否要更改外发WordPress电子邮件的默认发件人名称和电子邮件地址?

By default, WordPress uses ‘WordPress’ as the sender name for all outgoing WordPress notification emails. This doesn’t look very professional, and you may want to change that to your business name.

默认情况下,WordPress使用WordPress作为所有外发WordPress通知电子邮件的发件人名称。 这看起来不太专业,您可能需要将其更改为您的公司名称。

In this article, we will show you how to easily change the default sender name and email address in outgoing WordPress emails.

在本文中,我们将向您展示如何轻松更改外发WordPress电子邮件中的默认发件人名称和电子邮件地址。

Changing sender name and email address in outgoing WordPress emails
为什么要更改WordPress中的默认发件人信息? (Why You Should Change the Default Sender Information in WordPress?)

WordPress sends several email notifications to the site administrator as well as other users on your website.

WordPress会向站点管理员以及您网站上的其他用户发送一些电子邮件通知。

This includes very important email notifications such as forgot password emails, website error and recovery emails, new user registration, and more.

这包括非常重要的电子邮件通知,例如忘记密码的电子邮件,网站错误和恢复电子邮件,新用户注册等等。

By default, it uses ‘WordPress’ as the sender’s name and a non-existent email address (wordpress@yourdomain.com) as the sender email.

默认情况下,它使用“ WordPress”作为发件人的名称,并使用不存在的电子邮件地址(wordpress@yourdomain.com)作为发件人的电子邮件。

Many spam filters block your WordPress emails believing it to be spam. Sometimes it does not even make it to the spam folder.

许多垃圾邮件过滤器认为您的WordPress垃圾邮件阻止了您的WordPress电子邮件。 有时,它甚至没有进入垃圾邮件文件夹。

For more on this topic, take a look at our guide on how to fix WordPress not sending email issue.

有关此主题的更多信息,请查看有关如何修复WordPress不发送电子邮件问题的指南

The outgoing email notifications are important, and you should use your own brand and email address. This increases the authenticity of your brand and increases name recognition among your users.

传出电子邮件通知很重要,您应该使用自己的品牌和电子邮件地址。 这可以提高您品牌的真实性,并可以提高用户的知名度。

For instance, if you run an online store, then you would want customers to get email notifications with your store name as the sender.

例如,如果您经营一个在线商店 ,那么您希望客户获得以您的商店名称为发送者的电子邮件通知。

See our guide on how to get a free business email address for your website in 5 minutes.

请参阅我们的指南,了解如何在5分钟内为您的网站获取免费的企业电子邮件地址

Having said that, let’s see how to change the default sender name and email address in outgoing WordPress email notifications.

话虽如此,让我们看看如何在外发WordPress电子邮件通知中更改默认发件人名称和电子邮件地址。

方法1.使用WP Mail SMTP更改默认发件人名称和电子邮件 (Method 1. Changing Default Sender Name and Email using WP Mail SMTP)

This method is easier and recommended for all WordPress users.

此方法更简单,建议所有WordPress用户使用。

For this method, we’ll be using the WP Mail SMTP Pro plugin. It is the best WordPress SMTP plugin on the market, used by over 1 million website owners.

对于这种方法,我们将使用WP Mail SMTP Pro插件。 它是市场上最好的WordPress SMTP插件,已有超过一百万的网站所有者使用。

This plugin allows you to easily change the default sender name and email address for outgoing WordPress emails. It also helps you fix the WordPress email deliverability problem.

该插件可让您轻松更改外发WordPress电子邮件的默认发件人名称和电子邮件地址。 它还可以帮助您解决WordPress电子邮件的可传递性问题。

First thing you need to do is install and activate the WP Mail SMTP Pro plugin. For more details, see our step by step guide on how to install a WordPress plugin.

您需要做的第一件事是安装并激活WP Mail SMTP Pro插件。 有关更多详细信息,请参阅有关如何安装WordPress插件的分步指南。

Upon activation, you need to visit WP Mail SMTP » Settings to configure plugin settings. Under the Mail section, you can simply enter the email address and the name you want to use to send WordPress emails.

激活后,您需要访问WP Mail SMTP»设置以配置插件设置。 在“邮件”部分下,您只需输入要用于发送WordPress电子邮件的电子邮件地址和名称。

Change sender name and email in WordPress using WP Mail SMTP

Below that you can find the options to set up an SMTP server to send WordPress emails. By default, the plugin will use PHP method provided by your WordPress hosting company which is less reliable.

在其下,您可以找到用于设置SMTP服务器以发送WordPress电子邮件的选项。 默认情况下,插件将使用您的WordPress托管公司提供PHP方法,可靠性较低。

We recommend using any of the listed SMTP services to properly send WordPress emails for higher guaranteed deliverability.

我们建议使用任何列出的SMTP服务正确发送WordPress电子邮件,以确保更高的可传递性。

Select mailer

If you choose an SMTP service, then follow the on-screen instructions to connect the plugin with your SMTP service provider.

如果选择SMTP服务,请按照屏幕上的说明将插件与SMTP服务提供商连接。

Don’t forget to click on the ‘Save Settings’ button to save your changes.

不要忘记点击“保存设置”按钮来保存您的更改。

Test Your WordPress Emails

测试您的WordPress电子邮件

WP Mail SMTP Pro also allows you to test your WordPress email settings. Simply go to the WP Mail SMTP » Settings page and switch to the ‘Email Test’ tab.

WP Mail SMTP Pro还允许您测试WordPress电子邮件设置。 只需转到WP Mail SMTP»设置页面,然后切换到“电子邮件测试”标签。

Test WordPress emails using WP Mail SMTP

From here, you just need to provide an email address that you can access and then click on the ‘Send Email’ button.

从这里,您只需要提供一个可以访问的电子邮件地址,然后单击“发送电子邮件”按钮即可。

The plugin will now send a test email to the address you provided. You can check your inbox to make sure that you can receive WordPress emails, and it has the correct sender name and sender email address.

插件现在将向您提供的地址发送测试电子邮件。 您可以检查收件箱以确保您可以接收WordPress电子邮件,并且具有正确的发件人姓名和发件人电子邮件地址。

WP Mail SMTP works with all popular WordPress plugins like WooCommerce, WPForms, and more.

WP Mail SMTP可与所有流行的WordPress插件(例如WooCommerceWPForms等)一起使用。

For more detailed instructions, you may want to see our article on how to use SMTP to send WordPress emails.

有关更多详细说明,您可能需要阅读我们有关如何使用SMTP发送WordPress电子邮件的文章

方法2:使用CB更改默认发件人名称和电子邮件更改邮件发件人 (Method 2: Changing Default Sender Name and Email using a CB Change Mail Sender)

This method is only recommended if you don’t use an SMTP service, or the first method is not working for you.

仅当您不使用SMTP服务或第一种方法不适合您时才建议使用此方法。

Using this method does not improve your WordPress email deliverability or make it easier to troubleshoot email issues. However, if your WordPress emails are working, then it will allow you to change sender name and email address.

使用此方法不会提高WordPress电子邮件的可传递性,也不会更轻松地解决电子邮件问题。 但是,如果您的WordPress电子邮件正常运行,那么它将允许您更改发件人姓名和电子邮件地址。

First thing you need to do is install and activate the CB Change Mail Sender plugin. For more details, see our step by step guide on how to install a WordPress plugin.

您需要做的第一件事是安装并激活CB Change Mail Sender插件。 有关更多详细信息,请参阅有关如何安装WordPress插件的分步指南。

Upon activation, you will notice a new menu item labeled CB Mail Sender in your WordPress admin bar. Clicking on it will take you to plugin’s settings page.

激活后,您会在WordPress管理栏中看到一个名为CB Mail Sender的新菜单项。 单击它会将您带到插件的设置页面。

CB Mail Sender

You will need to enter the name and email address you want to be used for outgoing WordPress emails.

您将需要输入要用于外发WordPress电子邮件的名称和电子邮件地址。

Don’t forget to click on the save changes button to store your settings.

不要忘记单击“保存更改”按钮来存储您的设置。

That’s all, your WordPress notification emails will now show the name and email address you entered in plugin settings.

就是这样,您的WordPress通知电子邮件现在将显示您在插件设置中输入的名称和电子邮件地址。

There is no method provided by the plugin to test your email settings. You can do that by performing actions that generate WordPress notification emails like creating a new user, requesting a password reset, and more.

插件没有提供测试您的电子邮件设置的方法。 您可以通过执行生成WordPress通知电子邮件的操作来做到这一点,例如创建新用户,请求重设密码等等。

方法3:手动更改发件人姓名和电子邮件地址 (Method 3: Manually Change Sender Name and Email Address)

This method is not recommended for beginners. This method requires you to paste code into your WordPress files. It also does not fix any email deliverability issues and is harder to troubleshoot.

不建议初学者使用此方法。 此方法要求您将代码粘贴到WordPress文件中。 它还不能解决任何电子邮件的可传递性问题,并且更难解决。

If you are new to adding code in WordPress, then take a look at our beginners guide on pasting snippets from web into WordPress.

如果您不熟悉在WordPress中添加代码,请查看有关将网页摘要粘贴到WordPress的初学者指南。

You will need to add the following code in your theme’s functions.php file or a site-specific plugin.

您将需要在主题的functions.php文件或特定站点的插件中添加以下代码。



// Function to change email address
function wpb_sender_email( $original_email_address ) {
    return 'tim.smith@example.com';
}

// Function to change sender name
function wpb_sender_name( $original_email_from ) {
	return 'Tim Smith';
}

// Hooking up our functions to WordPress filters 
add_filter( 'wp_mail_from', 'wpb_sender_email' );
add_filter( 'wp_mail_from_name', 'wpb_sender_name' );


This code simply replaces the default WordPress sender name and email address with your custom sender name and email address.

此代码仅用您的自定义发件人名称和电子邮件地址替换默认的WordPress发件人名称和电子邮件地址。

You can test this by adding a new user, changing passwords, or any other action that sends a WordPress notification email.

您可以通过添加新用户,更改密码或发送WordPress通知电子邮件的任何其他操作来进行测试。

We hope this article helped you learn how to change the sender’s name and email address in outgoing WordPress emails. You may also want to see our guide on the best bulk email marketing services to bulk send email to all your users, and our comparison of the best WordPress page builder plugins to customize your site without any code.

我们希望本文能帮助您学习如何在发送的WordPress电子邮件中更改发件人的姓名和电子邮件地址。 您可能还需要查看有关最佳批量电子邮件营销服务的指南,以将电子邮件批量发送给所有用户,以及我们对最佳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视频教程。 您也可以在TwitterFacebook上找到我们。

翻译自: https://www.wpbeginner.com/plugins/how-to-change-sender-name-in-outgoing-wordpress-email/

wordpress端口更改

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值