-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot set SMTP addr with env var #25
Comments
I am also experiencing this issue. A temporary fix would be to set
|
@Santana1053 I'm trying this method but not having any luck with it. |
Same here. If use the local ip instead of |
Looks like this has been fixed in pull request #12, but is isn't in the released binaries. You can use the environment variable |
Its July 2022 and this still isn't in the binaries? |
i get the same problem.
|
With mhsendmail installed on application container and MailHog on another, I'm unable to set smtp addr using ENV vars. mhsendmail keeps trying to use localhost:1025.
docker-compose.yml:
php.ini:
test call run from fpm container:
php -r "\$from = \$to = '[email protected]'; \$x = mail(\$to, 'subject'.time(), 'Hello World', 'From: '. \$from); var_dump(\$x);"
result:
running the same test from host works fine.
The text was updated successfully, but these errors were encountered: