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

On 02/04/2015 07:07 PM, tom wrote:
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

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CADQqhMdvtJ%2Bz8-sndOGmGiZ4gYgZOQsfhMRi0F1%2B3gBLVRYtVA%40mail.gmail.com <https://groups.google.com/d/msgid/rubyonrails-talk/CADQqhMdvtJ%2Bz8-sndOGmGiZ4gYgZOQsfhMRi0F1%2B3gBLVRYtVA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/54F20309.6010005%40earthlink.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to