{"id":1953991,"date":"2022-08-25T11:22:36","date_gmt":"2022-08-25T15:22:36","guid":{"rendered":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/?post_type=post&#038;p=1953991"},"modified":"2023-06-15T13:05:44","modified_gmt":"2023-06-15T17:05:44","slug":"changing-sender-name-and-email-wordpress","status":"publish","type":"post","link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/changing-sender-name-and-email-wordpress\/","title":{"rendered":"Changing the Sender Name and Email in the Outgoing WordPress Email"},"content":{"rendered":"\n<p class=\"has-background\" style=\"background-color:var(--global-palette8)\"><strong>\ud83d\udc4b<\/strong> This article covers how to change the sender name and email in generic outgoing WordPress emails. Since <strong>Event Tickets 5.6.0<\/strong> we have introduced a new way to change the sender name and email in Event Tickets related emails. <a href=\"https:\/\/evnt.is\/event-tickets-emails\">Learn more<\/a>.<\/p>\n\n\n\n<p>By default, all emails coming from WordPress use &#8220;WordPress&#8221; as the sender name and &#8220;wordpress@yourdomain&#8221; as the sender email. However, this might not be desirable for you. You can add a layer of personalization to your emails by changing the sender name in all outgoing WordPress emails.<\/p>\n\n\n\n<p>There are a few different ways to achieve this, and we&#8217;ll outline all three of them for you below.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-changing-default-sender-name-and-email-using-wp-mail-smtp\">Changing Default Sender Name and Email using WP Mail SMTP<\/h2>\n\n\n\n<p>The first way that you can change the default sender name is with the third-party plugin <a href=\"https:\/\/wordpress.org\/plugins\/wp-mail-smtp\/\">WP Mail SMTP<\/a>. This is a great option for all user levels and the one we&#8217;d recommend to start off with.<\/p>\n\n\n\n<p>Once you install and activate the plugin, head to&nbsp;<strong>WP Mail SMTP \u00bb Settings<\/strong>&nbsp;to configure the plugin settings. Under the Mail section, all you need to do is put the email address and the name you want to use to send your WordPress emails.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"639\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/08\/screenshot-wp-mail-smtp-1024x639.png\" alt=\"\" class=\"wp-image-1954000\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/08\/screenshot-wp-mail-smtp-1024x639.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/08\/screenshot-wp-mail-smtp-300x187.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/08\/screenshot-wp-mail-smtp-768x479.png 768w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/08\/screenshot-wp-mail-smtp-1536x958.png 1536w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/08\/screenshot-wp-mail-smtp.png 1763w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Plus, if you have any email deliverability issues, you can also use this plugin to help by configuring the SMTP services. They have excellent <a href=\"https:\/\/wpmailsmtp.com\/wordpress-not-sending-email\/\" target=\"_blank\" rel=\"noreferrer noopener\">documentation<\/a> about that.<\/p>\n\n\n\n<p>Lastly, save your changes, and you&#8217;ll be good to go! If you&#8217;d like, you can even test your emails before sending them.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-changing-default-sender-name-and-email-using-wp-change-email-sender\">Changing Default Sender Name and Email using WP Change Email Sender<\/h2>\n\n\n\n<p>If the above method doesn&#8217;t work for you and you don&#8217;t use an SMTP service to send your emails, you can try this method. Don&#8217;t worry; this option is also relatively easy to use. The only downside is that it can update your sender options but doesn&#8217;t help with any email deliverability issues that you might have.<\/p>\n\n\n\n<p>Begin by installing and activating the&nbsp;<a href=\"https:\/\/wordpress.org\/plugins\/wp-change-email-sender\/\" target=\"_blank\" rel=\"noreferrer noopener\">WP Change Email Sender<\/a>&nbsp;plugin. Now, you&#8217;ll see a new menu item labeled WP Change Default Mail Sender Name and Email Address Options in your WordPress admin bar. Click on it to see the plugin&#8217;s settings page.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1149\" height=\"771\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/12\/screenshot-1.png\" alt=\"\" class=\"wp-image-1954696\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/12\/screenshot-1.png 1149w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/12\/screenshot-1-300x201.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/12\/screenshot-1-1024x687.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/12\/screenshot-1-768x515.png 768w\" sizes=\"auto, (max-width: 1149px) 100vw, 1149px\" \/><\/figure>\n\n\n\n<p>Simply enter the name and email address you want to use for outgoing WordPress emails.<\/p>\n\n\n\n<p>Don&#8217;t forget to click on the save changes button!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-manually-change-sender-name-and-email-address\">Manually Change Sender Name and Email Address<\/h2>\n\n\n\n<p>This last method is not recommended for beginners, as it requires dealing with custom codes. It also does not fix email deliverability issues and is harder to troubleshoot than the other options because there is no plugin support to contact should issues appear.<\/p>\n\n\n\n<p>Copy and paste the following snippet into your theme&#8217;s functions.php file, or using <a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\">Code Snippets<\/a> plugin.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n\/\/ Change email address\nfunction change_default_sender_email( $original_email_address ) {\n    return &#039;another@email.com&#039;;\n}\n \n\/\/ Change sender name\nfunction change_default_sender_name( $original_email_from ) {\n    return &#039;My name here&#039;;\n}\n \n\/\/ Hooking up functions to the correct WordPress filters \nadd_filter( &#039;wp_mail_from&#039;, &#039;change_default_sender_email&#039; );\nadd_filter( &#039;wp_mail_from_name&#039;, &#039;change_default_sender_name&#039; );\n<\/pre><\/div>\n\n\n<p>Don&#8217;t forget to replace the sender&#8217;s email address and name with your desired ones!<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud83d\udc4b This article covers how to change the sender name and email in generic outgoing WordPress emails. Since Event Tickets 5.6.0 we have introduced a new way to change the sender name and email in Event Tickets related emails. Learn more. By default, all emails coming from WordPress use &#8220;WordPress&#8221; as the sender name and&#8230;<\/p>\n","protected":false},"author":3,"featured_media":1955565,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_swpsp_post_exclude":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"ep_exclude_from_search":false,"footnotes":""},"categories":[24,79,87],"tags":[25,47],"stellar-product-taxonomy":[155,156],"class_list":["post-1953991","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-customizing","category-snippets","category-other-add-ons","tag-customizations","tag-integrations","stellar-product-taxonomy-event-tickets","stellar-product-taxonomy-event-tickets-plus"],"acf":[],"taxonomy_info":{"category":[{"value":24,"label":"Customizations"},{"value":79,"label":"Snippets"},{"value":87,"label":"Third Party Add-Ons"}],"post_tag":[{"value":25,"label":"Customizations"},{"value":47,"label":"Integrations"}],"stellar-product-taxonomy":[{"value":155,"label":"Event Tickets"},{"value":156,"label":"Event Tickets Plus"}]},"featured_image_src_large":["https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/02\/social-share-1024x538.png",1024,538,true],"author_info":{"display_name":"Jaime Marchwinski","author_link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/author\/jaimetri-be\/"},"comment_info":0,"category_info":[{"term_id":24,"name":"Customizations","slug":"customizing","term_group":0,"term_taxonomy_id":24,"taxonomy":"category","description":"","parent":0,"count":110,"filter":"raw","term_order":"0","cat_ID":24,"category_count":110,"category_description":"","cat_name":"Customizations","category_nicename":"customizing","category_parent":0},{"term_id":79,"name":"Snippets","slug":"snippets","term_group":0,"term_taxonomy_id":79,"taxonomy":"category","description":"","parent":0,"count":136,"filter":"raw","term_order":"0","cat_ID":79,"category_count":136,"category_description":"","cat_name":"Snippets","category_nicename":"snippets","category_parent":0},{"term_id":87,"name":"Third Party Add-Ons","slug":"other-add-ons","term_group":0,"term_taxonomy_id":87,"taxonomy":"category","description":"","parent":0,"count":13,"filter":"raw","term_order":"0","cat_ID":87,"category_count":13,"category_description":"","cat_name":"Third Party Add-Ons","category_nicename":"other-add-ons","category_parent":0}],"tag_info":[{"term_id":25,"name":"Customizations","slug":"customizations","term_group":0,"term_taxonomy_id":25,"taxonomy":"post_tag","description":"","parent":0,"count":177,"filter":"raw","term_order":"0"},{"term_id":47,"name":"Integrations","slug":"integrations","term_group":0,"term_taxonomy_id":47,"taxonomy":"post_tag","description":"","parent":0,"count":23,"filter":"raw","term_order":"0"}],"_links":{"self":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1953991","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1953991"}],"version-history":[{"count":1,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1953991\/revisions"}],"predecessor-version":[{"id":1957720,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1953991\/revisions\/1957720"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media\/1955565"}],"wp:attachment":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1953991"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1953991"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1953991"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1953991"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}