New registered user comes from wordpress@mydomain.com

When a new user completes his/hers registration I get an email.
But the email comes from wordpress@MyDomain.com
How do I change the wordpress part? I can’t find it anywhere.

Thanks in advance.

See General Options -> Email Configuration

I think I made all the configurations but the email comes from wordpress@MyDomain.com
Unless I miss something.

Then it sounds like you have another plugin, or custom code, that is interfering.

There are no other plugins.
In my mind it brings that setup from wordpress itself and I cant find where.

Have you actually set s2Member -> General Options -> Email Configuration?

Sure I set email configuration

Then you can try doing it by adding the following code to your active theme’s functions.php file:

function my_wp_mail_from_name( $name ) {
	return 'My Website Name';
}
add_filter( 'wp_mail_from_name', 'my_wp_mail_from_name' );

function my_wp_mail_from( $content_type ) {
	return 'me@email.com';
}
add_filter( 'wp_mail_from', 'my_wp_mail_from' );

Modify as necessary.

Also check WordPress Dashboard → Settings → General → Email Address. That’s the default address used by WordPress to send email notifications.

1 Like