search for: order_mail

Displaying 6 results from an estimated 6 matches for "order_mail".

Did you mean: order_mailer
2008 Nov 30
4
ActionMailer weirdness: bad html '=3d' for all '='
...---- I''m getting ''=3d'' for all ''='' so that the <A href=... becomes <A href=3d... which is garbage. I have tried using all possible combinations of h() and mailto function: those don''t fix it. That is NOT the problem. This is my method in order_mailer: def price(order) @subject = "Order Email @recipients = order.email @from = ''support-t1rxLZ7CIXjQT0dZR+AlfA@public.gmane.org'' @sent_on = Time.now @body["order"] = order part :content_type => "text/plain&qu...
2006 Aug 15
0
ActionMailer
Im trying to send an email see the code below: Model: order_mailer.rb class OrderMailer < ActionMailer::Base def send_an_email() @recipients = "myadress@isp.co.uk" @from = "myaddress@isp.co.uk" @subject = "Ruby Test" @body = "The Body" end end View: send_an_email.rhtml <p>Email was sent!.<...
2006 Apr 07
1
error when rendering partial from an email template
Hi, For an ecommerce application, I am trying to create an html email that summarizes a customers order. (This is very similar to the Agile Rails book page 417.) My templates are in two directories. views/ order_mailer/ sent.rhtml store/ _order_summary.rhtml _line_item.rhtml sent.rhtml needs to render the _order_summary.rhtml partial which needs to render the _line_item.rhtml summary. If I do the following in sent.rhtml I get an error that Rails can''t find a partial named order_summary...
2006 Aug 01
4
I need a favour
I have a fully developed e-commerce site with ruby on rails. it is in sandbox mode with paypal and I want to make it live. unfortunately my developer''s time on the project is up. i have the instructions to make it live, but im not familiar with rails (YET!). I intend to be, but I''d really like to get this live. Can a trusted rails developer on this site do this simple thing
2005 Dec 19
0
Re: Rails Digest, Vol 15, Issue 392
...a.body = label.render a.filename = "mailing-label.pdf" end end end I then 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...
2007 Feb 04
10
Spec''ing ActionMailer
Good morning (Pacific Time). I have a controller action that, as a side-effect, sends an email to an administrator. I want it to do something like this: specify "when someone successfully signs up, an email should be sent to the administrator with the person''s contact page" do post :signup, {...lots o'' params} response should_be success #