ipunkt/rancherize-mailhog

Rancherize plugin to add mailhog as a mailing endpoint for local development

1.0.1 2018-07-02 16:12 UTC

This package is auto-updated.

Last update: 2024-04-08 21:37:26 UTC


README

mailhog rancherize plugin

Install

If you are using the rancherize docker container:

rancherize plugin:register ipunkt/rancherize-mailhog

If you are using rancherize via composer:

rancherize plugin:install ipunkt/rancherize-mailhog:^1.0.0

Use

Add the following section to your environment or default-section of your rancherize.json:

"mailhog":{
	"port":PORT_TO_EXPOSE_ON
}

Example:

"mailhog":{
	"port":9081
}

Details

It will set the following variables on your main service:

MAIL_HOST: `mailhog`
MAIL_PORT: `1025`
SMTP_SERVER: `mailhog:1025`

SMTP_SERVER enables sendmail via mailhog when using the webserver or php-cli ipunkt blueprints.

MAIL_HOST and MAIL_PORT will cause a laravel project to send via mailhog.

You should set MAIL_ENCRYPTION to an empty string for laravel projects.