{"id":18206,"date":"2020-12-28T17:00:22","date_gmt":"2020-12-28T16:00:22","guid":{"rendered":"https:\/\/qodeinteractive.com\/magazine\/?p=18206"},"modified":"2020-12-28T12:52:48","modified_gmt":"2020-12-28T11:52:48","slug":"how-to-change-mail-sender-wordpress","status":"publish","type":"post","link":"https:\/\/qodeinteractive.com\/magazine\/how-to-change-mail-sender-wordpress\/","title":{"rendered":"How to Change the Sender Name in WordPress Mail"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_column_text]If you have an online business (or, in fact, any business at all), then you are probably aware of how important email is when it comes to communicating with your subscribers and potential customers. Say that you have any products or services to sell \u2013 the most efficient and cost-effective way to promote them is to leverage the power of <a href=\"https:\/\/qodeinteractive.com\/magazine\/email-marketing\/\">email marketing<\/a>. Similarly, you can easily reach the users of your WordPress site via email and send them different notifications, including user account verifications, password reset, notifications related to their product orders, and more.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]All these are more than enough reasons to make sure that your <a href=\"https:\/\/qodeinteractive.com\/magazine\/wordpress-not-sending-email\/\">email is working properly at all times<\/a>. But besides ensuring your emails are being sent, you also need to make certain that people know who is sending them. This is something you can do by changing the mail sender name in your outgoing WordPress email. Stick around as we share <strong>different methods to change both the sender name and the mail address on your WordPress site<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]We will cover:[\/vc_column_text][vc_empty_space height=&#8221;22px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#why-change-sender-name-and-email\">Why You Should Change the Sender Name and Email in WordPress<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#wp-mail-smtp-plugin\">Changing the Default Sender Name and Email Using the WP Mail SMTP Plugin<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#cb-change-mail-sender-plugin\">Changing the Default Sender Name and Email Using the CB Change Mail Sender Plugin<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#manually\">Changing the Sender Name and Email Address Manually<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\"><a id=\"why-change-sender-name-and-email\"><\/a>Why You Should Change the Sender Name and Email in WordPress<\/h2>\n<p>[\/vc_column_text][vc_column_text]By default, the sender name in WordPress that users see when they receive email notifications from you is \u201cWordPress\u201d, with the non-existent email address labeled <strong>wordpress@yourdomain.com<\/strong>. It shouldn\u2019t come as a surprise that many spam filters view these addresses as spam, which results in many of them being blocked. If your WordPress email address gets marked as spam too often, your server can receive a bad reputation, which can lead to some email providers blocking your emails altogether.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]By changing your sender name and email address, you will prevent your email notifications from being labeled as spam, ensuring that they reach their destination every time. Plus, <strong>if you use your own name in your emails, you can increase awareness of your brand among your subscribers by a long shot.<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Let\u2019s take a look at how you can change the default sender name and email address in WordPress. We will go through the necessary steps using two different plugins, and we\u2019ll also show you how to do it manually using code.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;80px&#8221;][vc_widget_sidebar sidebar_id=&#8221;new-top-picks-banner&#8221;][vc_empty_space height=&#8221;81px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\"><a id=\"wp-mail-smtp-plugin\"><\/a>Changing the Default Sender Name and Email Using the WP Mail SMTP Plugin<\/h2>\n<p>[\/vc_column_text][vc_column_text]When it comes to changing the default sender name and email, it\u2019s safe to say that this plugin is the best solution for your WordPress site.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"518\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/WP-Mail-SMTP-by-WPForms.jpg\" class=\"attachment-full size-full\" alt=\"WP Mail SMTP by WPForms\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/WP-Mail-SMTP-by-WPForms.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/WP-Mail-SMTP-by-WPForms-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/WP-Mail-SMTP-by-WPForms-768x411.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/WP-Mail-SMTP-by-WPForms-620x331.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]With over 1 million active installations, <a href=\"https:\/\/wordpress.org\/plugins\/wp-mail-smtp\/\" target=\"_blank\" rel=\"noopener\">WP Mail SMTP<\/a> is the most popular SMTP plugin around that lets you change your default email address as well as the sender name with complete ease. In addition, <strong>it fixes your email deliverability by reconfiguring the WordPress mailing function to use a proper SMTP provider when sending your emails.<\/strong> During this process, the plugin makes sure that emails are sent using the provider\u2019s direct API, so even if your web host is blocking SMTP ports, your emails will reach all the intended targets.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]First things first, you should <a href=\"https:\/\/qodeinteractive.com\/magazine\/how-to-install-a-wordpress-plugin\/\">install the plugin<\/a> and activate it. Then, go ahead and <strong>access <em>WP Mail SMTP &gt;&gt; Settings<\/em> in your WordPress admin dashboard.<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Over there, in the <em>Mail<\/em> section of the screen, you should enter the email address which emails are going to be sent from, as well as the sender name.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"515\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/WP-Mail-SMTP-Settings-Mail.jpg\" class=\"attachment-full size-full\" alt=\"WP Mail SMTP Settings Mail\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/WP-Mail-SMTP-Settings-Mail.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/WP-Mail-SMTP-Settings-Mail-300x159.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/WP-Mail-SMTP-Settings-Mail-768x408.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/WP-Mail-SMTP-Settings-Mail-620x330.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Also, you should make sure that the \u201cForce From Email\u201d and \u201cForce From Name\u201d boxes are checked. This will ensure that the settings will override values set by any other plugin you may have installed.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Next, in the <em>Mailer<\/em> section, <strong>you should pick one of the available mailing service providers to set up the SMTP server.<\/strong> You don\u2019t want to use the default mailer method, since it\u2019s less dependable than others.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"532\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/WP-Mail-SMTP-Mailer.jpg\" class=\"attachment-full size-full\" alt=\"WP Mail SMTP Mailer\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/WP-Mail-SMTP-Mailer.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/WP-Mail-SMTP-Mailer-300x165.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/WP-Mail-SMTP-Mailer-768x422.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/WP-Mail-SMTP-Mailer-620x340.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Whichever option you pick, the plugin will provide the appropriate link to the documentation that will help you set up and configure the mailing service provider and improve the deliverability of your email.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Once you connect the plugin with your SMTP service provider, you should hit the <em>Save Settings<\/em> button.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Now, <strong>click the <em>Email Test<\/em> tab to send a test email that will allow you to check if your email is set and working properly.<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"518\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/WP-Mail-SMTP-Send-Test-Email.jpg\" class=\"attachment-full size-full\" alt=\"WP Mail SMTP Send Test Email\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/WP-Mail-SMTP-Send-Test-Email.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/WP-Mail-SMTP-Send-Test-Email-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/WP-Mail-SMTP-Send-Test-Email-768x411.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/WP-Mail-SMTP-Send-Test-Email-620x331.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Here you can insert the email address you wish to send the test email to. Just click the <em>Send Email<\/em> button once you\u2019re done and check your mail inbox to see if you can receive emails.[\/vc_column_text][vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\"><a id=\"cb-change-mail-sender-plugin\"><\/a>Changing the Default Sender Name and Email Using the CB Change Mail Sender Plugin<\/h2>\n<p>[\/vc_column_text][vc_column_text]This is an alternative option that you can use if for some reason the first plugin doesn\u2019t end up working for you, or if you don\u2019t use the SMTP service.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"518\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/CB-Change-Mail-Sender.jpg\" class=\"attachment-full size-full\" alt=\"CB Change Mail Sender\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/CB-Change-Mail-Sender.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/CB-Change-Mail-Sender-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/CB-Change-Mail-Sender-768x411.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/CB-Change-Mail-Sender-620x331.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]That being said, with the <a href=\"https:\/\/wordpress.org\/plugins\/cb-change-mail-sender\/\" target=\"_blank\" rel=\"noopener\">CB Change Mail Sender<\/a> plugin, you can only change your sender name and email address and can\u2019t check your email deliverability. However, you can always test if your email is working properly by carrying out some tasks that trigger WordPress notifications that get sent by email. For example, you can do this by creating a new user, requesting a reset of your password, etc.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]After installing and activating the CB Change Mail Sender plugin, go to <em>CB Mail Sender<\/em> in your WordPress dashboard. The plugin is pretty simple and straightforward to use \u2013 you only need to <strong>enter your sender name and email and hit the <em>Save Changes<\/em> button<\/strong> and that\u2019s it. Once you configure these settings, the email address and name you inserted will be shown to users when they receive an email from you.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"462\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/CB-Change-Mail-Sender-Settings.jpg\" class=\"attachment-full size-full\" alt=\"CB Change Mail Sender Settings\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/CB-Change-Mail-Sender-Settings.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/CB-Change-Mail-Sender-Settings-300x143.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/CB-Change-Mail-Sender-Settings-768x366.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/12\/CB-Change-Mail-Sender-Settings-620x296.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;78px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\"><a id=\"manually\"><\/a>Changing the Sender Name and Email Address Manually<\/h2>\n<p>[\/vc_column_text][vc_column_text]Another way to change the default email and sender name is by using a <strong>PHP<\/strong> function. To do this, you need to paste the following code snippets into your <strong>functions.php<\/strong> file by going to <em>Appearance &gt;&gt; Themes<\/em> &gt;&gt; functions.php. This code will replace the default WordPress email address and sender name with your own.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]The code to change your email address:<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">add_filter( 'wp_mail_from', 'sender_email' );\r\nfunction sender_email( $original_email_address ) {\r\nreturn 'your_email_name@example.com';\r\n}<\/pre>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]The code to change your sender name:[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">add_filter( 'wp_mail_from_name', 'sender_name' );\r\nfunction sender_name( $original_email_from ) {\r\nreturn 'Your Name';\r\n}<\/pre>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Paste these two pieces of code at the very bottom of your function.php file, modify them with your own email and name, and save your changes.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">Wrapping Up<\/h2>\n<p>[\/vc_column_text][vc_column_text]Emails are an important part of everyday communication between people in all spheres of life, and the same goes for your website and its users. That\u2019s why you must ensure that your emails are reaching the intended recipients and prevent them from ending up in spam by changing the default sender name and email address on your WordPress site. We recommend using the WP Mail SMTP plugin as it offers the most comprehensive range of options, while CB Change Mail Sender can be your alternative option in case something goes awry with the first one. And, if all else fails, you always have the option to insert the code snippets we presented above directly into your functions.php file.<br \/>\n[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Stick around as we share methods to change the sender name and mail address on your WordPress site \u2013 with two different plugins as well as manually using code.<\/p>\n","protected":false},"author":2,"featured_media":18281,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[21,15,4,13],"class_list":["post-18206","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-php","tag-plugins","tag-tips","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts\/18206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/comments?post=18206"}],"version-history":[{"count":0,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts\/18206\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/media\/18281"}],"wp:attachment":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/media?parent=18206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/categories?post=18206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/tags?post=18206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}