How to Change the default WordPress sent from name and adress?
Usually wordpress sends mail with a mail adress like [email protected] But you can easily configure this , simply use a plugin like “SMTP Plugin” or just add a few lines of code to your themes functions.php (or create s simple plugin). Here is how to change the default “sent from” email adress:
Changing the email adress
add_filter( 'wp_mail_from', 'my_mail_from' ); function my_mail_from( $email ) { return "change-this-to-your-email-address"; }
Changen the mail from name
add_filter( 'wp_mail_from_name', 'my_mail_from_name' ); function my_mail_from_name( $name ) { return "My Name"; }
Dieser Beitrag hat 0 Kommentare