Don't use localhost as SMTP server
Use 127.0.0.1
as it for sure won't cause emails to be not delivered (it was my case for development environment of Rails 2.3 app).
config.action_mailer.smtp_settings = {
:address => "127.0.0.1",
:port => 1025
}
Bonuses:
- Use Mailcatcher for development
- Use sanitize_email for staging
Written by Adam Stankiewicz
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Related Tags
#rails
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#