• The email sent that warns that the user name have changed does not render the html for <strong>$username</strong>

    It displays the html as text in the message body as it is, like: your username has changed to <strong> maria </strong>

    here is the email headers – you will notice the content-type is actually text/plain – maybe it’s related ?

    X-Mailer: PHPMailer 5.2.22 (https://github.com/PHPMailer/PHPMailer)
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    • This topic was modified 7 years, 4 months ago by yammy.
    • This topic was modified 7 years, 4 months ago by yammy.
    • This topic was modified 7 years, 4 months ago by yammy.
    • This topic was modified 7 years, 4 months ago by yammy.
Viewing 2 replies - 1 through 2 (of 2 total)
  • what i did is, i changed the html tag for bold text with [ username ] for highlighting purpose while maintaining the plain text format.

    Go to this file /username-changer/includes/class.template-tags.php
    Edit line 366 & 379
    change from return '<strong> ' . $username . '</strong>'; to return '[ ' . $username . ' ]';

    if I changed the email headers directly to send HTML format, this might affect other mailing plugins as well, so i just maintain the format and replace the tag so that it shows nicely in the email.

    • This reply was modified 7 years, 3 months ago by eWallz.
    • This reply was modified 7 years, 3 months ago by eWallz.

    I had the same problem with Username Changer Version 3.1.3

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘username html for strong not rendering in email’ is closed to new replies.