Emailing from a rails app

0 views
Skip to first unread message

greg.p...@gmail.com

unread,
Dec 31, 2009, 12:08:49 PM12/31/09
to Orlando Ruby Users Group Discussion
Hi all,
Thought I'd share something I just learned the hard way :)

I am setting up a new app to email via my gmail account and I kept
getting the following error:
Net::SMTPFatalError (555 5.5.2 Syntax error

It seems the Net::SMTP library no longer lets you use an email setup
like:
def setup_email(user)
recipients user.email
from "Nsight Development <nor...@nsightdevelopment.com>"
sent_on Time.now
content_type "text/html"
end

The angle brackets in the from were causing the syntax error.


Greg

Reply all
Reply to author
Forward
0 new messages