ActionMailer plain text problem and UPPERCASE chars

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 "acct@something.com"     from "acct@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

Sorry, I meant ActionMailer 2.3.2.

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...

In what way does it fail ? (exception thrown, nothing happens, talks to the smtp server but message never arrives, message arrives but is spam filtered, something else ?)

Fred

I just checked the Spam inbox and all the failed messages ended up in there. What does this mean, how would char case make this happen?

Here's some answers to your other Qs...

No exceptions are thrown. The site logic flows as if everything worked as planned, the production log also states that email was sent to the correct address. The log says the exact same thing whether the email showed up in my mail client or not.

Thanks for working with me on this Fredrick!

Elliott Golden wrote:

I just checked the Spam inbox and all the failed messages ended up in there. What does this mean, how would char case make this happen?

It means that your spam filter uses excessive uppercase as a criterion for marking messages as spam! This has nothing to do with Rails.

Best,

Thanks for helping me out here guys!

Elliott