fbpx
Enjoy the biggest Cyber Monday sale of the year with WP Event Manager. GET FLAT 20% ON EVERYTHING.Coupon Code: CM2023 shop Now
How can we help?

Changing Default Email Address

The sender email address, also known as the “From” in the admin panel helps your event attendees identify you and your business. That is why it is essential for you to add an easily recognizable sender’s email address while filling up your preferences in the admin panel.

Generally, your personal email address is added to the From section as the default sender but you can change it easily using the below mentioned code:

// Function to change email address
 function wpb_sender_email( $original_email_address ) {
 return 'miracle@yoursite.com';
 }
// Function to change sender name
 function wpb_sender_name( $original_email_from ) {
 return 'A miracle worker';
 }
// Hooking up our functions to WordPress filters
 add_filter( 'wp_mail_from', 'wpb_sender_email' );
 add_filter( 'wp_mail_from_name', 'wpb_sender_name' );

Quick Links
Close