views:

293

answers:

2

When I try and send an email say [email protected] it throws (Net::SMTPSyntaxError) "501 5.1.3 Bad recipient address syntax" is it me or is the syntax checker a little too strict?

Has anyone come across this before/have a patch for net/smtp?

back trace:

/usr/local/lib/ruby/1.8/net/smtp.rb:679:in `check_response'
/usr/local/lib/ruby/1.8/net/smtp.rb:652:in `getok'
/usr/local/lib/ruby/1.8/net/smtp.rb:634:in `rcptto'
/usr/local/lib/ruby/1.8/net/smtp.rb:545:in `send0'
/usr/local/lib/ruby/1.8/net/smtp.rb:544:in `each'
/usr/local/lib/ruby/1.8/net/smtp.rb:544:in `send0'
/usr/local/lib/ruby/1.8/net/smtp.rb:471:in `sendmail'
/usr/local/lib/ruby/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:684:in `perform_delivery_smtp'
/usr/local/lib/ruby/1.8/net/smtp.rb:378:in `start'
/usr/local/lib/ruby/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:682:in `perform_delivery_smtp'
/usr/local/lib/ruby/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:523:in `__send__'
/usr/local/lib/ruby/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:523:in `deliver!'
A: 

Very quick thought (without research so apologies if I miss the mark!): try single quotes around the address '[email protected]' to make it a literal string?

Otherwise, this post seems to address the problem with Exception Notifier Plugin and Rails 2.2.2+.

Dave Everitt
A: 

The problem was upstream - using sendgrid.

Are you sure that's coming from ruby and not from the smtp server? – flyfishr64

MatthewFord