I believe I should have put this in the How To and Troubleshooting forum. But after posting it there, I realize that I can’t delete this post. If one of the admins could delete this duplicate, that would be great.
I think you can do that with a WP filter
add_filter( 'wp_mail_from', 'custom_wp_mail_from' );
function custom_wp_mail_from( $original_email_address ) {
//Make sure the email is from the same domain
//as your website to avoid being marked as spam.
return 'webmaster@mydomainname.com';
}
wp_mail_from
Hi @shanebp,
Am I missing something? I would have thought that would change the from address of all outgoing mail, not just notifications from BuddyPress?
I can’t really test $original_email_address because BP is not using a unique from address to start with.
But perhaps I’m confused about something?
-Mike
afaik – you cannot change the from
address for just notifications.