Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rails: include html in a mail_to link

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.

Thanks for any hints

Markus

like image 349
Markus Avatar asked Nov 19 '10 11:11

Markus


1 Answers

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")

See the documentation for the mail_to helper.

like image 155
Simone Carletti Avatar answered Oct 05 '22 18:10

Simone Carletti