Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

→ right arrow not rendered correctly anymore #79

Open
cypris75 opened this issue Oct 18, 2024 · 1 comment
Open

→ right arrow not rendered correctly anymore #79

cypris75 opened this issue Oct 18, 2024 · 1 comment

Comments

@cypris75
Copy link

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

@eladnava
Copy link
Owner

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.');
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants