The problem seems to be an issue with actionmailer 2.3.3
https://rails.lighthouseapp.com/projects/8994/tickets/3078-actionmailer-233-broke-display-name-support-in-from-address-when-using-smtp
I''m working around it in my envrionment but doing this until it gets
resolved.
require ''rubygems''
gem ''activerecord'', ''=2.2.2''
require ''activerecord''
http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/83e4318f4217abf5
________________________________
From: Mark Studebaker <mark-h9LRGznmPqMAvxtiuMwx3w@public.gmane.org>
To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Sent: Sunday, September 6, 2009 12:59:37 AM
Subject: [Rails] Actionmailer 2.3.4 error
Hello -
I''m using action mailer in a SVN post-commit script to send out emails.
Everything was working fine with actionmailer 2.2.2. Now that U upgraded to
actionmailer 2.3.4 I''m getting errors.
This is the code I''m using and was working.
def simple_message(repo, to, sub, message)
from "#{repo} SVN <abc-GXcTff7tL0M@public.gmane.org>" ##
Note - [<abc-GXcTff7tL0M@public.gmane.org>] results in a blank sender
recipients to.join(", ")
subject sub
body message
content_type "text/html"
end
This is the error
/usr/lib/ruby/1.8/net/smtp.rb:930:in `check_response'': 550 5.1.0 Not
our Customer (Net::SMTPFatalError)
from /usr/lib/ruby/1.8/net/smtp.rb:899:in `getok''
from /usr/lib/ruby/1.8/net/smtp.rb:828:in `mailfrom''
from /usr/lib/ruby/1.8/net/smtp.rb:653:in `sendmail''
from
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.4/lib/action_mailer/base.rb:684:in
`perform_delivery_smtp''
from /usr/lib/ruby/1.8/net/smtp.rb:526:in `start''
from
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.4/lib/action_mailer/base.rb:682:in
`perform_delivery_smtp''
from
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.4/lib/action_mailer/base.rb:523:in
`__send__''
from
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.4/lib/action_mailer/base.rb:523:in
`deliver!''
from
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.4/lib/action_mailer/base.rb:395:in
`method_missing''
from post-commit.rb:181
Is there a workaround for this? Could I just require the older version of
actionmailer? If so, what is the syntax?
Thanks
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---