Forum: Ruby on Rails sending html email w/o template

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Tom T. (Guest)
on 2015-02-05 04:09
(Received via mailing list)

i want to send html emails. i have a field containing a full html doc
structure and i would like to send that. basically the user brings that
saves it to the db.

i have tried various methods, with and without mailer template, also
yield in the template, but i am not getting the user provided html out

so, in short how do i send html w/o a template, or can the template be

Norm S. (Guest)
on 2015-02-28 20:06
(Received via mailing list)
I send mail from the database in my app.  It is plain not html but
generally will do what you want. Take a look at the source in Download the source and look in
reservation_controller and in res_mailer.rb model.  This is rails 2.3.18
but it might be of some help.  It processes through liquid but that
should not add much confusion.

Robby O'Connor (Guest)
on 2015-02-28 20:10
(Received via mailing list)
Robby O'Connor (Guest)
on 2015-02-28 20:29
(Received via mailing list)
Could also probably use Mailchimp or sendgrid...
This topic is locked and can not be replied to.