ipunkt/rancherize-mailhog

This package is abandoned and no longer maintained. No replacement package was suggested.

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

Installs: 462

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 0

Open Issues: 0

Type:project

pkg:composer/ipunkt/rancherize-mailhog

1.0.1 2018-07-02 16:12 UTC

This package is auto-updated.

Last update: 2024-12-08 23:10:46 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.