rancherize-mailhog
mailhog rancherize plugin, (*1)
Install
If you are using the rancherize docker container:, (*2)
rancherize plugin:register ipunkt/rancherize-mailhog
If you are using rancherize via composer:, (*3)
rancherize plugin:install ipunkt/rancherize-mailhog:^1.0.0
Use
Add the following section to your environment or default-section of your rancherize.json:, (*4)
"mailhog":{
"port":PORT_TO_EXPOSE_ON
}
Example:, (*5)
"mailhog":{
"port":9081
}
Details
It will set the following variables on your main service:, (*6)
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., (*7)
MAIL_HOST and MAIL_PORT will cause a laravel project to send via mailhog., (*8)
You should set MAIL_ENCRYPTION to an empty string for laravel projects., (*9)