Tulip Media

Entrepreneurial thoughts

Change WordPress Default Sender

Little quick tip for users of the CMS WordPress, tired of seeing the function wp_mail envoyer des messages automatiques à leurs utilisateurs sous l’e-mail ““. Pour pallier à ce problème, il n’existe malheureusement pas de réglages dans le backend de WordPress. So, here is a little filter seen on Butterblog.com, l’auteur du plugin WP-Members, qui permet de personnaliser non seulement l’adresse mail d’envoi par défaut de WordPress, mais également le nom de l’expéditeur.

We will filter wp_mail_from And wp_mail_from_name, by editing the file functions.php.

functions.php:

add_filter( ‘wp_mail_from’, ‘my_mail_from’ );
function my_mail_from($email)
{ return ‘’; }
add_filter( ‘wp_mail_from_name’, ‘my_mail_from_name’ );
function my_mail_from_name($name)
{ return ‘My Name’; }

 

My latest tweets

New shorts on Blooness 👉 Vitality, longevity, weight loss: the ultimate guide to proteins in the keto-Mediterranean diet is online on Blooness. https://buff.ly/3xxNvpj
https://buff.ly/4cG2GM4

New shorts on Blooness 👉 The new premium content comes out in 48 hours, and what content! This will be the most comprehensive guide on the amount of protein to consume on a keto-Mediterranean diet. See you soon !
https://buff.ly/3L2KbFP

New Post: Combo, the best solution to put an end to the headache of scheduling and HR management https://buff.ly/4eE6JtT

Load more

Don't miss business advice by email

No spam, just an email when new content is published.

One Response

  1. Good morning,

    which functions.php file should you modify exactly because there are several?

    Merci d’avance

Leave a Reply

Your email address will not be published. Required fields are marked *

en_USEN