Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save irozgar/6dead9f7254cf07f93a319f9a7b16d0f to your computer and use it in GitHub Desktop.
Save irozgar/6dead9f7254cf07f93a319f9a7b16d0f 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