mailgen icon indicating copy to clipboard operation
mailgen copied to clipboard

→ right arrow not rendered correctly anymore

Open cypris75 opened this issue 1 year ago • 1 comments

Right Arrow (→) Symbol Not Rendering Correctly

Description:

The right arrow symbol (→ →) is no longer rendered correctly in certain environments.

Affected Platforms:

  • GMail (screenshot below)
  • Mailtrap
  • Possibly other platforms

Additional Issue:

The copyright symbol (© ©) also appears to be affected.

Screenshot (GMail):

image

cypris75 avatar Oct 18 '24 17:10 cypris75

Hi @cypris75, Unfortunately, I can't reproduce. Both symbols work fine for me:

Screen Shot 2024-10-18 at 1 48 43 PM

Most likely, you're HTML encoding the result of mailGenerator.generate(email); before passing it into your mailing library (e.g. nodemailer), or your mailing library automatically HTML encodes any e-mail body you pass into it.

Please investigate further, and consider trying out nodemailer to confirm it's your mailing library that is the cause of the issue:

// Send the e-mail with your favorite mailer
transporter.sendMail({
    from: '[email protected]',
    to: '[email protected]',
    subject: 'Mailgen',
    html: emailBody,
    text: emailText,
}, function (err) {
    if (err) return console.log(err);
    console.log('Message sent successfully.');
});

eladnava avatar Oct 18 '24 19:10 eladnava

Closing due to lack of activity, please advise in case you're still facing this issue.

eladnava avatar Jun 12 '25 16:06 eladnava