我正在寻找一种在 mail_to 链接中包含 html 的方法,以便我可以自动在此电子邮件的正文中包含横幅。
感谢您的任何提示
Markus
Rails 3
mail_to "[email protected] /cdn-cgi/l/email-protection", raw(image_tag("/path/to/banner.png"))
导轨 2.x
mail_to "[email protected] /cdn-cgi/l/email-protection", image_tag("/path/to/banner.png")
请参阅文档mail_to http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-mail_to helper.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)