Skip to content

Instantly share code, notes, and snippets.

@snoek09
Last active January 11, 2018 13:49
Show Gist options
  • Save snoek09/7edcfa71b5957163a1a4 to your computer and use it in GitHub Desktop.
Save snoek09/7edcfa71b5957163a1a4 to your computer and use it in GitHub Desktop.
mailcatcher setup with symfony running in vagrant box

Forward port 1080 in Vagrantfile

config.vm.network :forwarded_port, host: 1080, guest: 1080

Install mailcatcher on vagrant box

sudo apt-get install ruby-dev
sudo apt-get install libsqlite3-dev
sudo gem install mailcatcher

Change smtp port in symfony app/config/parameters.yml

mailer_port: 1025

Start mailcatcher with ip option

mailcatcher --http-ip 0.0.0.0

Open http://localhost:1080/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment