question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Quoted-Printable emails not rendering correctly

See original GitHub issue

I think this is the same issue as https://github.com/mailslurper/mailslurper/issues/83 but it’s marked closed and I can’t reopen it.

I sent this simple email via Mailslurp:

<!doctype html>
<html>
<head>
	<title></title>
</head>
<body>
This is a test email. <a href="http://example.com">Link</a>

</body>
</html>

Result: mailslurp

Viewing source we see: <a href=3D"http://example.com">

I stuck a socat listener in between the mail client and Mailslurp, the conversation is below. The mail client correctly includes the Content-Transfer-Encoding: quoted-printable header to indicate the content encoding is QP.

➜ socat -v TCP-LISTEN:2501,fork,reuseaddr TCP:localhost:2500
220 Welcome to MailSlurper!\r
EHLO localhost\r
250 Hello. How very nice to meet you!\r
MAIL FROM:<test@test.com>\r
250 Ok\r
RCPT TO:<test@test.com>\r
250 Ok\r
DATA\r
354 End data with <CR><LF>.<CR><LF>\r
Mime-Version: 1.0\r
Date: Fri, 06 Sep 2019 12:47:07 +0100\r
Message-Id: <1567770427392666000.4685.4156668335605406494@localhost>\r
Subject: MLTest01\r
To: "Dummy Derp" <test@test.com>\r
From: test@test.com\r
X-Mailer: gophish\r
Content-Type: text/html; charset=UTF-8\r
Content-Transfer-Encoding: quoted-printable\r
\r
<!doctype html>\r
<html>\r
<head>\r
	<title></title>\r
</head>\r
<body>\r
This is a test email. <a href=3D"http://example.com">Link</a>\r
\r
<img alt=3D'' style=3D'display: none' src=3D'http://localhost/track?rid=3D0=\r
RtyL3a'/></body>\r
</html>\r
.\r
250 Ok\r

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:3
  • Comments:7

github_iconTop GitHub Comments

2reactions
thiggcommented, May 26, 2020

Workaround: use mailhog

0reactions
Robby6Stringscommented, Nov 19, 2022

Another year later, can’t use a link in my email :c

Read more comments on GitHub >

github_iconTop Results From Across the Web

Quoted printable attachments not displaying correctly
I have an issue where attachments to emails encoded in quoted printable get corrupted, the email itself displays correctly, just the attachment ...
Read more >
Email not displaying correctly - Apple Community
Email not displaying correctly. Recently, emails from one contact have started to display as ... Content-Transfer-Encoding: quoted-printable.
Read more >
quoted printable line continuation bug? - Stack Overflow
In this case, I'm trying to embed the report as html the body, but outlook is not rendering parts of the report correctly....
Read more >
Notes mail is rendered strange in outlook (EML) - Super User
Yes, it's a standard part of the MIME Quoted-Printable transfer encoding ... Outlook doesn't recognize it as such (either not seeing it as...
Read more >
correctly encode emails as quoted-printable - Bugzilla@Mozilla
a lot of email encoding issues will be resolved if we encoded all utf8 emails as 8bit instead of quoted-printable. we'd be able...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found