{"id":338,"date":"2011-09-16T02:14:28","date_gmt":"2011-09-16T00:14:28","guid":{"rendered":"https:\/\/tulipemedia.com\/?p=338"},"modified":"2025-07-15T15:49:03","modified_gmt":"2025-07-15T13:49:03","slug":"change-wordpress-default-sender","status":"publish","type":"post","link":"https:\/\/tulipemedia.com\/en\/changer-lexpediteur-par-defaut-de-wordpress\/","title":{"rendered":"Change WordPress Default Sender"},"content":{"rendered":"<p>Little quick tip for users of the <strong>CMS<\/strong> <strong>WordPress<\/strong>, tired of seeing the function <strong>wp_mail<\/strong> send automatic messages to their users under the email &quot;\u00a0<strong>WordPress@votredomaine.com<\/strong>\u201c. To overcome this problem, there are unfortunately no settings in the backend of <strong>WordPress<\/strong>. So, here is a little filter seen on <a href=\"http:\/\/butlerblog.com\/2011\/07\/08\/changing-the-wp_mail-from-address-in-wordpress-without-a-plugin\/\" target=\"_blank\" rel=\"noopener\">Butterblog.com<\/a>, the author of the WP-Members plugin, which allows you to <strong>customize not only the default WordPress sending email address, but also the sender name<\/strong>.<\/p>\n<p>We will filter <strong>wp_mail_from<\/strong> And <strong>wp_mail_from_name<\/strong>, by editing the file <strong>functions.php<\/strong>.<\/p>\n<p>functions.php:<\/p>\n<p><em>add_filter( &#039;wp_mail_from&#039;, &#039;my_mail_from&#039; );<\/em><br \/><em>function my_mail_from($email)<\/em><br \/><em>{ return &#039;myemail@mydomain.com&#039;; }<\/em><br \/><em>add_filter( &#039;wp_mail_from_name&#039;, &#039;my_mail_from_name&#039; );<\/em><br \/><em>function my_mail_from_name($name)<\/em><br \/><em>{ return &#039;My Name&#039;; }<\/em><\/p>\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"VLOG of the WAY OF STAGE 1 FROM PUY-EN-VELAY TO CHANALEILLES, 3 days of walking and 3 stops\" width=\"800\" height=\"450\" src=\"https:\/\/www.youtube.com\/embed\/zkPk0_bLCWA?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>","protected":false},"excerpt":{"rendered":"<p>Petite astuce rapide \u00e0 destination des utilisateurs du CMS WordPress, lass\u00e9s de voir la fonction wp_mail envoyer des messages automatiques \u00e0 leurs utilisateurs sous l&rsquo;e-mail \u00ab\u00a0WordPress@votredomaine.com\u00ab\u00a0. Pour pallier \u00e0 ce probl\u00e8me, il n&rsquo;existe malheureusement pas de r\u00e9glages dans le backend de WordPress. Du coup, voici un petit filtre vu sur Butterblog.com, l&rsquo;auteur du plugin WP-Members, [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"aside","meta":{"footnotes":""},"categories":[33],"tags":[164],"class_list":["post-338","post","type-post","status-publish","format-aside","hentry","category-snippets","tag-tips-wordpress","post_format-post-format-aside"],"_links":{"self":[{"href":"https:\/\/tulipemedia.com\/en\/wp-json\/wp\/v2\/posts\/338","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tulipemedia.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tulipemedia.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tulipemedia.com\/en\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/tulipemedia.com\/en\/wp-json\/wp\/v2\/comments?post=338"}],"version-history":[{"count":2,"href":"https:\/\/tulipemedia.com\/en\/wp-json\/wp\/v2\/posts\/338\/revisions"}],"predecessor-version":[{"id":5693,"href":"https:\/\/tulipemedia.com\/en\/wp-json\/wp\/v2\/posts\/338\/revisions\/5693"}],"wp:attachment":[{"href":"https:\/\/tulipemedia.com\/en\/wp-json\/wp\/v2\/media?parent=338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tulipemedia.com\/en\/wp-json\/wp\/v2\/categories?post=338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tulipemedia.com\/en\/wp-json\/wp\/v2\/tags?post=338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}