MailCatcher

De MochilaWiki
Ir para navegaçãoIr para pesquisar

Instalando

apt-get update
apt install build-essential libsqlite3-dev ruby-dev
gem install mailcatcher --no-document

Integrando com o Apache2

CATCHMAIL=$(find /var/lib/gems -type f -name catchmail)
sed -i "s|;sendmail_path =|sendmail_path = \"/usr/bin/env $CATCHMAIL\"|g" /etc/php/7.0/apache2/php.ini
sed -i "s|;sendmail_path =|sendmail_path = \"/usr/bin/env $CATCHMAIL\"|g" /etc/php/7.0/cli/php.ini
service apache2 restart

Iniciando o MailCatcher

mailcatcher --foreground --http-ip=0.0.0.0

Referências