2

I am trying get mailcatcher working with my Rails 3.2.x app. Added mailcatcher gem and bundled, and...

development.rb

config.action_mailer.delivery_method = :smtp
  config.action_mailer.smtp_settings = {
    address: "localhost",
    port: 1025,
  }

I get the mailcatcher console at localhost:1080, but I get nothing when mails is sent. I am using delayed job, and can see delayed jobs being created and run, so I know the mails are being triggered in dev. What is my next step in troubleshooting this?

1
  • I had, superficially, the same problem. Turned out, my emails were missing a from: so they were silently swallowed. Perhaps there was something similar for you. Commented Oct 18, 2017 at 12:04

1 Answer 1

1

I ended up using https://github.com/ryanb/letter_opener. This worked out of the box for me.

Sign up to request clarification or add additional context in comments.

1 Comment

You can also use MailCatcher in a docker container such as github.com/spaquet/alpinemailcatcher

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.