I tried to configure actionmailer to send via google apps with smtp.
config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { :add
It works now, I think the problem was with the username. it needs the domain in the username. i.e. the problem was
user_name: 'username'
Whereas the correct way (at least for google apps) is
user_name : 'username@mydomain.com'