无法使用 premailer-rails 在邮件中加载图像

not able to load images in mails using premailer-rails

我正在使用 premailer-rails 最新版本 gem 发送 HTML 邮件,但它无法从我的本地主机加载图像。

我已经在我的 ENV 文件中添加了:config.action_mailer.asset_host = 'http://localhost:3000/'。

如有遗漏请指教

真正的问题是 gmail 服务器没有接受 http 请求,因此图像无法正确呈现。

我在本地添加了 SSL 证书,这样我就可以访问 https:\localhost:3000 并解决了我的问题。