Rails Mailer quoted-printable replace = by =3D

Rails Mailer quoted-printable replace = by =3D

我已经面对这个错误很长时间了,阅读了很多 "solution" 但没有一个对我有用。

当我用 Rails 发送电子邮件时,我收到了它,但由于这个引用打印问题,我上面的所有图像都无法正常工作。

例如我的 views/user_mailer/confirmation.html.erb

中有这段代码
<img src="mydomain.com/logo.gif"/>

当我收到它时,在源代码中我可以看到(但它不工作):

<img alt=3D"mydomain.com/logo.gif" />

所有其他=都转化为=3D

邮件是:

Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

可能是什么解决方案,我已经尝试了很多但都没有成功...

感谢您的帮助

我可能是错的,但我不认为你可以在 html 电子邮件中只有 example.com/logo.gif 作为图像 src。您需要指定协议 -- http://example.com/logo.gif。至少Apple Mail是这样的。