Actually the latest release of mailcatcher is of 2016 https://github.com/alexandresalome/mailcatcher/releases.
Mailhog seems more interesting with more stuff and no ruby requirement https://github.com/mailhog/MailHog.
This script seems to make it work when I run it from within vagrant:
#!/usr/bin/env bash
echo ">>> Installing Mailhog"
# Download binary from github
wget --quiet -O ~/mailhog https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64
# Make it executable
chmod +x ~/mailhog
# Make it start on reboot
sudo tee /etc/init/mailhog.conf <<EOL
description "Mailhog"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
pre-start script
exec su - vagrant -c "/usr/bin/env ~/mailhog > /dev/null 2>&1 &"
end script
EOL
# Start it now in the background
sudo service mailhog start
I found it here: https://gist.github.com/varghesejacob/68caf7aeee53305a1ffa#file-mailhog-bash-script
I can access it on vvv.test:8025 port
I just need to test if the emails are caught when I send them from local WordPress.
EDIT:
Seems like it's not catching the emails I'm trying to send from WordPress :( But this could be related with my installation. Currently, mailcatcher is not working for me.
@dingo-d Are the mails actually sending from WordPres? I seem to recall this may be related to the nginx server name being set to _
PHP configs need ammending to use mhsendmail. https://github.com/Varying-Vagrant-Vagrants/VVV/pull/1543 installs Mailhog though it doesn't do the last part setting up the service yet
Gotcha, I'll follow along and see if there's anywhere I can lend a hand.
MailHog now replaces Mailcatcher in develop
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
This script seems to make it work when I run it from within vagrant:
I found it here: https://gist.github.com/varghesejacob/68caf7aeee53305a1ffa#file-mailhog-bash-script
I can access it on
vvv.test:8025portI just need to test if the emails are caught when I send them from local WordPress.
EDIT:
Seems like it's not catching the emails I'm trying to send from WordPress :( But this could be related with my installation. Currently, mailcatcher is not working for me.