If you want to send a HTML email have a look at the Rails
documentation it is very well documented. Here is a snip:

Mailer views are located in the app/views/name_of_mailer_class
directory. The specific mailer view is known to the class because it’s
name is the same as the mailer method. So for example, in our example
from above, our mailer view for the welcome_email method will be in
app/views/user_mailer/welcome_email.text.html.erb for the HTML version
and welcome_email.text.plain.erb for the plain text version.

The action mailer basics should have all you need...
http://guides.rubyonrails.org/action_mailer_basics.html

But the short version is in the naming of the views text.html.erb and
text.plain.erb and then you have the content_type that can be set too
"text/html", Rails send multipart emails if you have a text and html
view.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to