You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So by default all emails sent using the wp_mail functions, such as new users emails, have the default sender name as "WordPress" and the default sender email address as [email protected]
I suggest we add the following to the base_functions file to allow for banded names:
// Update WordPresses wp_mail from addressadd_filter( 'wp_mail_from', 'custom_wp_mail_from' );
functioncustom_wp_mail_from( $original_email_address ){
//Make sure the email is from the same domain//as your website to avoid being marked as spam.returnget_option('admin_email');
}
// Update WordPresses wp_mail from nameadd_filter( 'wp_mail_from_name', 'custom_wp_mail_from_name' );
functioncustom_wp_mail_from_name( $original_email_from ){
returnget_option('blogname');
}
We should also discuss how we can keep the admin_email for the site as [email protected] but allow a banded email, exmaple [email protected], to be used.
The text was updated successfully, but these errors were encountered:
So by default all emails sent using the wp_mail functions, such as new users emails, have the default sender name as "WordPress" and the default sender email address as [email protected]
I suggest we add the following to the base_functions file to allow for banded names:
Referance: http://codex.wordpress.org/Function_Reference/wp_mail
We should also discuss how we can keep the admin_email for the site as [email protected] but allow a banded email, exmaple [email protected], to be used.
The text was updated successfully, but these errors were encountered: