{"id":3625,"date":"2022-05-18T12:00:40","date_gmt":"2022-05-18T12:00:40","guid":{"rendered":"https:\/\/scriptfeeds.com\/blog\/?p=3625"},"modified":"2023-10-31T20:16:44","modified_gmt":"2023-10-31T20:16:44","slug":"wordpress-notification-emails","status":"publish","type":"post","link":"https:\/\/scriptfeeds.com\/blog\/wordpress\/wordpress-notification-emails\/","title":{"rendered":"Easy Steps to change sender name in WordPress notification emails"},"content":{"rendered":"\n<p>By default, WordPress uses \u2018WordPress\u2019 as the sender name for all outgoing WordPress notification emails. This may seems odd and very unprofessional to many online sellers. Also sometimes these emails can be blocked or spam by many email providers.<\/p>\n\n\n\n<p>Changing Sender Name and Email in <strong><a href=\"https:\/\/wordpress.com\/support\/email-notifications\/\" data-type=\"link\" data-id=\"https:\/\/wordpress.com\/support\/email-notifications\/\" target=\"_blank\" rel=\"noopener\">WordPress notification email<\/a><\/strong> can be done via plugin or functions but we prefer function over adding extra plugins for such small features. <\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#add-the-code-below-in-your-functions-php-file-of-child-theme-to-change-sender-name-in-word-press-notification-emails\">Code to add in Child theme<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"726\" height=\"325\" src=\"https:\/\/scriptfeeds.com\/blog\/wp-content\/uploads\/2023\/10\/Wordpress-notification-emails.webp\" alt=\"WordPress notification emails\" class=\"wp-image-4129\" srcset=\"https:\/\/scriptfeeds.com\/blog\/wp-content\/uploads\/2023\/10\/Wordpress-notification-emails.webp 726w, https:\/\/scriptfeeds.com\/blog\/wp-content\/uploads\/2023\/10\/Wordpress-notification-emails-300x134.webp 300w, https:\/\/scriptfeeds.com\/blog\/wp-content\/uploads\/2023\/10\/Wordpress-notification-emails-150x67.webp 150w, https:\/\/scriptfeeds.com\/blog\/wp-content\/uploads\/2023\/10\/Wordpress-notification-emails-399x179.webp 399w\" sizes=\"(max-width: 726px) 100vw, 726px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\" id=\"add-the-code-below-in-your-functions-php-file-of-child-theme-to-change-sender-name-in-word-press-notification-emails\"><strong>Add the code below in your functions.php file of child theme to change sender name in WordPress notification emails.<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Function to change email address\nfunction sf_sender_email( $original_email_address ) {\n    return 'info@mydomain.com';\n}\n \n\/\/ Function to change sender name\nfunction sf_sender_name( $original_email_from ) {\n    return 'Company name';\n}\n \n\/\/ Hooking up our functions to WordPress filters \nadd_filter( 'wp_mail_from', 'sf_sender_email' );\nadd_filter( 'wp_mail_from_name', 'sf_sender_name' );<\/code><\/pre>\n\n\n\n<p>So add the code and let us know if its working. If you need any other customization regarding WooCommerce, <strong><a href=\"https:\/\/scriptfeeds.com\/blog\/hire-us\/\" data-type=\"page\" data-id=\"3537\">contact our Support team here<\/a><\/strong><\/p>\n\n\n\n<p><strong>happy Coding!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default, WordPress uses \u2018WordPress\u2019 as the sender name for all outgoing WordPress notification emails. This may seems odd and very unprofessional to many online sellers. Also sometimes these emails can be blocked or spam by many email providers. Changing Sender Name and Email in WordPress notification email can be done via plugin or functions [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3412,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jnews-multi-image_gallery":[],"jnews_single_post":{"subtitle":"","format":"standard","video":"","gallery":"","source_name":"","source_url":"","via_name":"","via_url":"","override_template":"0","override":[{"template":"2","single_blog_custom":"","parallax":"1","fullscreen":"1","layout":"right-sidebar","sidebar":"default-sidebar","second_sidebar":"default-sidebar","sticky_sidebar":"1","share_position":"float","share_float_style":"share-monocrhome","show_share_counter":"1","show_view_counter":"1","show_featured":"1","show_post_meta":"1","show_post_author":"1","show_post_author_image":"1","show_post_date":"1","post_date_format":"default","post_date_format_custom":"Y\/m\/d","show_post_category":"1","show_post_reading_time":"0","post_reading_time_wpm":"300","show_zoom_button":"0","zoom_button_out_step":"2","zoom_button_in_step":"3","show_post_tag":"1","show_prev_next_post":"0","show_popup_post":"0","number_popup_post":"1","show_author_box":"0","show_post_related":"1","show_inline_post_related":"0"}],"override_image_size":"0","image_override":[{"single_post_thumbnail_size":"no-crop","single_post_gallery_size":"crop-500"}],"trending_post":"0","trending_post_position":"meta","trending_post_label":"Trending","sponsored_post":"0","sponsored_post_label":"Sponsored by","sponsored_post_name":"","sponsored_post_url":"","sponsored_post_logo_enable":"0","sponsored_post_logo":"","sponsored_post_desc":"","disable_ad":"0"},"jnews_primary_category":{"id":"","hide":""},"footnotes":""},"categories":[75,89],"tags":[229,228],"class_list":["post-3625","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","category-errors","tag-change-business-name-in-wordpress-emails","tag-change-wordpress-name-in-emails"],"_links":{"self":[{"href":"https:\/\/scriptfeeds.com\/blog\/wp-json\/wp\/v2\/posts\/3625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scriptfeeds.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scriptfeeds.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scriptfeeds.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/scriptfeeds.com\/blog\/wp-json\/wp\/v2\/comments?post=3625"}],"version-history":[{"count":0,"href":"https:\/\/scriptfeeds.com\/blog\/wp-json\/wp\/v2\/posts\/3625\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/scriptfeeds.com\/blog\/wp-json\/wp\/v2\/media\/3412"}],"wp:attachment":[{"href":"https:\/\/scriptfeeds.com\/blog\/wp-json\/wp\/v2\/media?parent=3625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scriptfeeds.com\/blog\/wp-json\/wp\/v2\/categories?post=3625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scriptfeeds.com\/blog\/wp-json\/wp\/v2\/tags?post=3625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}