rails:在mail_to链接中包含html [英] rails: include html in a mail_to link
本文介绍了rails:在mail_to链接中包含html的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找一种在mail_to链接中包含html的方法,以便我可以在此电子邮件正文中自动添加横幅。
I'm looking for a way to include html in a mail_to link, so that I can automatically include a banner in the body of this email.
感谢任何提示
Markus
推荐答案
Rails 3
mail_to "email@example.com", raw(image_tag("/path/to/banner.png"))
Rails 2.x
Rails 2.x
mail_to "email@example.com", image_tag("/path/to/banner.png")
请参阅 mail_to 帮手的文档。
这篇关于rails:在mail_to链接中包含html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文