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@abc.com” ## Note - [abc@abc.com] 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

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