4

我已经面对这个错误很长时间了,阅读了很多“解决方案”,但没有一个对我有用。

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

例如,我的视图/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

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

谢谢你的帮助

4

1 回答 1

2

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

于 2015-01-02T18:02:15.913 回答