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 [email protected]” ## Note - [[email protected]] 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:ingetok’
from /usr/lib/ruby/1.8/net/smtp.rb:828:in mailfrom' from /usr/lib/ruby/1.8/net/smtp.rb:653:insendmail’
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:instart’
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:insend
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:inmethod_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

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 S. [email protected]
To: [email protected]
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 [email protected]” ## Note - [[email protected]] 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:ingetok’
from /usr/lib/ruby/1.8/net/smtp.rb:828:in mailfrom' from /usr/lib/ruby/1.8/net/smtp.rb:653:insendmail’
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:instart’
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:insend
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:inmethod_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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs