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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C25d913c4111f0db9ca31f0595eba878?d=identicon&s=25 Tom Tom (tingle)
on 2015-02-05 03:09
(Received via mailing list)
hi,

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
and
saves it to the db.

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

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


thx
46f52c33235283752423837b91c581dd?d=identicon&s=25 Norm Scherer (Guest)
on 2015-02-28 19: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
http://opencampground.com/download. 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.

Norm
Fde839db701c9efdfb1b30823b9a2cc8?d=identicon&s=25 Robby O'Connor (Guest)
on 2015-02-28 19:10
(Received via mailing list)
Fde839db701c9efdfb1b30823b9a2cc8?d=identicon&s=25 Robby O'Connor (Guest)
on 2015-02-28 19:29
(Received via mailing list)
Could also probably use Mailchimp or sendgrid...
This topic is locked and can not be replied to.