Hello, I am using ActionMailer 2.3.3 to send out a very simple plain text email. I am having a very strange issue where the email will not be sent out if some of the the lines in the view are set to all caps. I can't figure this one out. It took almost a day to even narrow it down to this. I am just calling deliver_transaction_email in my controller for now...
Here's the model: class Notifier < ActionMailer::Base def transaction_email(order_id, cart, order_is_taxable) order = Order.find(order_id) recipients "a...@something.com" from "a...@somethignelse.com" subject "Merchandise order" sent_on Time.now body :cart => cart, :order => order, :date_time => Time.now, :order_is_taxable => order_is_taxable end end Below is the view. When the view starts with uppercase chars then a line after it is all uppercase as well the email will not be sent. It gets even more tricky, because, If I omit the second line of uppercase chars... in other places in the view I can successfully use all uppercase and some places not. I really can't establish a fail pattern here! View: same issue if it's named "transaction_email.erb", "transaction_email.html.erb" or as part of an implied multipart/ alternative "transaction_email.text.plain.erb" or even as html in "transaction_email.text.html.erb" Yes, it even breaks in an HTML based view. A NEW ORDER HAS BEEN PLACED ------------------------------------------------------------------------------------------ WIll not work unless lower case. UPPCASE CHARS HERE BREAK IT. Ordered on: <%= @date_time %> Type: Authorization Only <% if @order_is_taxable == "true"%> Amount: <%= number_to_currency(@cart.post_tax_total) %> Texas resident sales tax added: Yes <% else %> Amount: <%= number_to_currency(@cart.sub_total) %> Texas resident sales tax added: No <% end %> ... I am really stumped with this one. If anyone has any insight I'd love to hear it. Thanks a ton, Elliott --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---