• Resolved paradaye

    (@paradaye)


    Dear Jack

    When i use the test email for new user registration its working fine but the email itself is still in plain text.
    I tried to Isolate the problem (disabled all plugins with my theme) and finally tried the plugin with twenty sixty theme, it worked well and as a result contacted the creators but there wasn’t a helpful answer

    can you give me some tips to how solve this problem out?
    Thanks in Advance

    • This topic was modified 8 years, 3 months ago by paradaye.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author bnfw

    (@voltronik)

    Hi @paradaye,
    Thanks for your message.

    So the theme you’re using is making the New User Registration email into plain text instead of HTML – is that correct?

    Thanks,
    Jack

    • This reply was modified 8 years, 3 months ago by bnfw.
    Thread Starter paradaye

    (@paradaye)

    Thanks for reply

    Yes that’s true
    It seems that theme uses it’s own function, i’m not good with php but I found these codes in a directory called registration template :

    // Redefine user notification function
    if ( !function_exists(‘cs_wp_new_user_notification’) ) {

    function cs_wp_new_user_notification( $user_id, $plaintext_pass = ” ) {

    $user = get_userdata( $user_id );

    $blogname = wp_specialchars_decode(get_option(‘blogname’), ENT_QUOTES);

    $message = sprintf(__(‘New user registration on your site %s:’,’EDULMS’), $blogname) . “\r\n\r\n”;
    $message .= sprintf(__(‘Username: %s’,’EDULMS’), $user->user_login) . “\r\n\r\n”;
    $message .= sprintf(__(‘E-mail: %s’,’EDULMS’), $user->user_email) . “\r\n”;

    mail(get_option(‘admin_email’), sprintf(__(‘[%s] New User Registration’,’EDULMS’), $blogname), $message);

    if ( empty($plaintext_pass) )
    return;

    $message = sprintf(__(‘Username: %s’,’EDULMS’), $user->user_login) . “\r\n”;
    $message .= sprintf(__(‘Password: %s’,’EDULMS’), $plaintext_pass) . “\r\n”;
    $message .= esc_url(home_url(‘/’)). “\r\n”;

    mail($user->user_email, sprintf(__(”), $blogname), $message);

    }
    }

    I’ve made a test and added some extra message in it and i was sure this is the theme mail function becuase my message appeard in the email.
    So if this would be the case the problem is how to change the code to use the bnfw plugin
    Thanks in advance
    Payam

    • This reply was modified 8 years, 3 months ago by paradaye.
    Plugin Author bnfw

    (@voltronik)

    Hi Payam,
    If there’s an option to disable that email somewhere in the theme’s options, that would be the best way to do this.

    If not, you may have to either edit the theme or create a child theme that disables this functionality in the parent theme.

    Does this help?

    Thanks,
    Jack

    Plugin Author bnfw

    (@voltronik)

    Closing due to inactivity. If you need further help with this, please feel free to re-open this thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘The test email works fine but the email still in plain text when send to users’ is closed to new replies.