I'm attempting to correctly configure Rails 3 Action Mailer initializers to send mail from my domain. I thought it might be helpful to gather that information here, since the other docs I see are for Rails 2, or may be out-of-date. For reference, users can look at Railscasts.com's "Action Mailer in Rails 3" to learn how to set up an Action Mailer controller in Rails 3. My question however is just on how to set up the smtp configuration properly with the correct username. I am trying this from my local development server.
config.action_mailer.raise_delivery_errors = true config.action_mailer.delivery_method = :smtp config.action_mailer.perform_deliveries = true
However, with these settings, I am not actually sending any mail. The mailbox itself does work, so I am deducing that it is just an SMTP settings problem. asked 03 Jan '11, 16:37 kevindickerson |
Domain should be your domain,
If the sending address is wrong it may fail. If you submit a support ticket with the sending mailbox we can look at the logs and see exactly why it is failing. answered 03 Jan '11, 17:06 johns |
These initializer settings to configure Action Mailer in Rails 3 worked for me:
Thanks support guys! answered 06 Jan '11, 19:23 kevindickerson |