logo       

[Rails] Re: how to avoid (Net::SMTPFatalError) "555 5.5.2 Syntax error: msg#03237

RubyonRailsTalk

Subject: [Rails] Re: how to avoid (Net::SMTPFatalError) "555 5.5.2 Syntax error


Santosh Turamari wrote:
> @from = "#{sender}<aaa@xxxxxxx>"

> If I submit an email id, It is giving error as
> (Net::SMTPFatalError) "555 5.5.2 Syntax error. d29sm1994943and.38\n"

The from line is the problem. The Net::SMTP library was recently changed
so it adds angle brackets to your sender, so you cannot have any in your
string. Try this as a workaround:

@from = "aaa@xxxxxxx"
--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise