Today… I needed to implement multi-part emails to be sent out… (HTML and Text)
With ActionMailer it’s really easy…
RAILS_ROOTappmodelsuser_notifier.rb - your ActionMailer class and action
RAILS_ROOTappviewsuser_notifier
inside of here, just place *.rhtml files with the part (for multi-part) in the name…
so for example, I have an action called send_report, that has NOTHING different in it than a normal action for email…
I just create inside of our view folder (above)
send_report.text.plain.rhtml (containing your plain text version of the email, obviously)
send_report.text.html.rhtml (containing your html version)
And use normal ActionView means to an end…perfect All email clients I tested properly displayed the email in HTML and Text.
ActionMailer sounds like a worthy RUM presentation… ;-)
You coming tonight?
Tonight? Nobody ever tells me ahead of time when the meetings are…
I think I should be able to make it actually…
You should join the mailing list!
However, meetings are easy to remember: last Tuesday in the month, unless there’s a holiday, and then it depends.