wpsharks / s2member

s2Member® Framework (membership management for WordPress®).
64 stars 36 forks source link

Correspondance FROM email "wordpress" #1192

Open ljamesb opened 4 years ago

ljamesb commented 4 years ago

When testing create-new-account email confirmation (new password after account registration, forgot password, etc.) my email shows the SENDER is :wordpress:

The Config Page for S2 plugin>>email options does NOT seem to carry 'site name' and 'email account' (email address) to Word Press...

it is a minor-bug and a minor-fix.

Edit Functions.PHP and add LIKE:

// Function to change email address 

function wpb_sender_email( $original_email_address ) {    return 'tim.smith@example.com';} 

// Function to change sender namefunction wpb_sender_name( $original_email_from ) {    return 'Tim Smith';} // Hooking up our functions to WordPress filters add_filter( 'wp_mail_from', 'wpb_sender_email' );add_filter( 'wp_mail_from_name', 'wpb_sender_name' ); -- | --

THIS should set the from email/from to a custom value.. but could/should be set from S2 plugin... email optiosn (no?)