robzolkos / rails-devcontainer

41 stars 3 forks source link

Mailgun Question #3

Open jmarsh24 opened 2 months ago

jmarsh24 commented 2 months ago

How do you use mailgun in your devcontainer setup? Does it need to be launched by the rails app or is it an external service? I want to be able to open up mailers in development.

robzolkos commented 1 month ago

Yep in your development environment file set up like

config.action_mailer.smtp_settings = { address: "host.docker.internal", port: 1025, domain: "host.docker.internal" }

You can then go to localhost:8025 and see the emails coming in.