I am getting a peculiar syntax error with when setting the from email address in an ActionMailer class, like this:
from 'Email <i...@email.com>' 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 '<i...@email.com>' 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/. --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---