I am getting a peculiar syntax error with when setting the from email address in an ActionMailer class, like this: from ''Email <info-zuv13RyHHZkAvxtiuMwx3w@public.gmane.org>'' This is a valid email address as shown on http://api.rubyonrails.org/classes/ActionMailer/Base.html#M001561 (see bbc email). But I am receiving this error: Net::SMTPSyntaxError (501 Syntax error in parameters or arguments ): /usr/lib/ruby/1.8/net/smtp.rb:680:in `check_response'' /usr/lib/ruby/1.8/net/smtp.rb:653:in `getok'' /usr/lib/ruby/1.8/net/smtp.rb:631:in `mailfrom'' /usr/lib/ruby/1.8/net/smtp.rb:544:in `send0'' /usr/lib/ruby/1.8/net/smtp.rb:472:in `sendmail'' /usr/lib/ruby/1.8/net/smtp.rb:379:in `start'' The email sends file when it is: from ''<info-zuv13RyHHZkAvxtiuMwx3w@public.gmane.org>'' But the mail server I''m using requires the text before it. I have no idea what is going on. Any help is greatly appreciated! Zac -- Posted via http://www.ruby-forum.com/.
Known issue with rails 2.3.3 & 2.3.4. https://rails.lighthouseapp.com/projects/8994/tickets/2340-action-mailer-cant-deliver-mail-via-smtp-on-ruby-191#ticket-2340-19 There is a workaround listed in the thread. On Oct 8, 11:11 am, Zac Zheng <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I am getting a peculiar syntax error with when setting the from email > address in an ActionMailer class, like this: > > from ''Email <i...-zuv13RyHHZkAvxtiuMwx3w@public.gmane.org>'' > > This is a valid email address as shown onhttp://api.rubyonrails.org/classes/ActionMailer/Base.html#M001561(see > bbc email). > > But I am receiving this error: > > Net::SMTPSyntaxError (501 Syntax error in parameters or arguments > ): > /usr/lib/ruby/1.8/net/smtp.rb:680:in `check_response'' > /usr/lib/ruby/1.8/net/smtp.rb:653:in `getok'' > /usr/lib/ruby/1.8/net/smtp.rb:631:in `mailfrom'' > /usr/lib/ruby/1.8/net/smtp.rb:544:in `send0'' > /usr/lib/ruby/1.8/net/smtp.rb:472:in `sendmail'' > /usr/lib/ruby/1.8/net/smtp.rb:379:in `start'' > > The email sends file when it is: > from ''<i...-zuv13RyHHZkAvxtiuMwx3w@public.gmane.org>'' > > But the mail server I''m using requires the text before it. > > I have no idea what is going on. Any help is greatly appreciated! > > Zac > -- > Posted viahttp://www.ruby-forum.com/.
I''m showing my retardedness again! From email can''t not have description before the email address. To, cc and bcc can. ActionMailer rdoc where description(description <e@email.com>) was used, was in bcc. RTC 821 is my friend: http://james.apache.org/server/rfclist/smtp/rfc0821.txt -- Posted via http://www.ruby-forum.com/.
lardawge wrote:> Known issue with rails 2.3.3 & 2.3.4. > > https://rails.lighthouseapp.com/projects/8994/tickets/2340-action-mailer-cant-deliver-mail-via-smtp-on-ruby-191#ticket-2340-19 > > There is a workaround listed in the thread.Thanks! -- Posted via http://www.ruby-forum.com/.