2010-11-19 80 views

回答

13

的Rails 3

mail_to "[email protected]", raw(image_tag("/path/to/banner.png")) 

Rails的2.X

mail_to "[email protected]", image_tag("/path/to/banner.png") 

请参阅mail_to帮助文档。

+0

什么方法是原料()?我的Rails(2.3.5)不知道这个方法! – Markus 2010-11-19 11:49:24

+0

这是一个Rails 3的帮手。如果你使用Rails 2更简单。我更新了回复。 – 2010-11-19 11:52:21

+0

对不起,我的问题是错的......但你回答正确!你可以在这里找到我真正的问题:http://stackoverflow.com/questions/4224751/ – Markus 2010-11-19 12:03:36