Ssmtp default email address


#1

Hello there,

I wish to know where can I config the wordpress system mail ?

I received a system mail for reset pass/ create user from wordpress@domain.com

It’s possible I can change that email address? such as webmaster@domain.com


#2

I believe this is done through WP itself: https://codex.wordpress.org/Plugin_API/Filter_Reference/wp_mail_from_name


#3

Hm, I’ve added this to my site

add_filter('wp_mail_from', __NAMESPACE__ . '\\new_mail_from');
function new_mail_from($old) {
    return 'info@mydomain.tld';
}

add_filter('wp_mail_from_name', __NAMESPACE__ . '\\new_mail_from_name');
function new_mail_from_name($old) {
    return 'Information';
}

but it sends mail as web@mydomain.tld anyway.

Adding this
web:info@mydomain.tld
into /etc/ssmtp/revaliases

Worked for me. But cannot control the from name this way it seems.