The example below works, it now uses via options instead of smtp, also
the body is now included, if some one out there is wondering what
ENV['TO_EMAIL'] is. These are environment variables that are easily
setup locally and on heroku. Its all explained here
http://docs.heroku.com/config-vars
Pony.mail :to => ENV['TO_EMAIL'],
:from => params[:email],
:subject => params[:subject],
:body => params[:email] +" wrote:\n" +
params[:message],
:via => :smtp,
:via_options => {
:address => 'smtp.gmail.com',
:port => '587',
:user_name => ENV['GMAIL_USER'],
:password => ENV['GMAIL_PASSWORD'],
:authentication => :plain,
:domain => "wavesummit.com"
}
--
You received this message because you are subscribed to the Google Groups
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en.