Displaying 1 result from an estimated 1 matches for "deliver_confirmation_message".
2005 Dec 19
0
Re: Rails Digest, Vol 15, Issue 392
...en invoke the above method from my controller as follows:
def generate_confirmation_email
label = create_mailing_label(@order, @person)
html = render_to_string(:template => "order_mailer/confirm",
:layout => "blank")
OrderMailer::deliver_confirmation_message(@person, label, html)
end
And voila, it works! (Note that I created a "blank" layout, so as to avoid the headers and footers from the rest of the site.)
The bottom line: If you want to have HTML and something else in a message, generate the HTML and PDF *before* invokin...