0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Workaround for outlook, who doesn't like quoted-printable encoding

For example, outlook 2013 plus would not interpert the following html
(encoded via quoted-printable encoding):
<a href=3D=22http://engineering=
.como.com/ghost/signup/MTQxNTcwNzM5MTYwN3x5dXJ5QG5peC5jby5pbHx3NVBmUUN4RGZr=
cGhKc3FPOElybXNZNWtzR0FMTU9tRFI5UlNyRWQ4SGJZPQ=3D=3D/=22 style=3D=22color:
=

The workournd forces node-mailer to user base64, which outlook understands
well.
This commit is contained in:
Yury Michurin 2014-10-28 15:03:32 +02:00
parent bc728c3e62
commit 198017d1a7

View file

@ -76,7 +76,8 @@ GhostMailer.prototype.send = function (message) {
message = _.extend(message, {
from: self.from(),
to: to,
generateTextFromHTML: true
generateTextFromHTML: true,
encoding: 'base64' // Outlook doesn't like default 'quoted-printable' encoding inside links when the url is splited with '='
});
return new Promise(function (resolve, reject) {