-
Notifications
You must be signed in to change notification settings - Fork 16
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
Custom MAIL environment variables being overwritten when Outgoing mail is disabled. #20
Conversation
Ah looks like this pull request might fix #21 ! |
Any update on wether this fix works and will be made available in a new release? |
@budda We're running my fork in our Laravel based app running on Platform.sh. Mail settings are honoured and we're happy everything is working OK |
@sincilite what's the correct syntax for composer to pull in this fork of the laravel-bridge package whilst waiting for a merge? I've tried loads and nothing seems to work, always ends with:-
|
You'll need to set a repositories block in your
and update your You might need to set your minimum stability requirement to be
|
Thanks @sincilite - the minor detail was:
i had changed the dependency to be Also confirmed this PR fixes my problem with using AWS SES on PSH. Many thanks for sorting it @sincilite 👍🏻 |
Closes #21 Thank you @budda and @sincilite! |
@chadwcarlson are we getting a new tagged release of the package? |
@budda - moved too fast. 🙇 https://github.com/platformsh/laravel-bridge/releases/tag/2.2.2 |
We experienced a bug where the environment variables set in Platform.sh for the project's environment were being ignored when outgoing emails using P.sh's own SendGrid SMTP host.
The documentation says that disabling email through the project's settings UI sets the value of PLATFORM_SMTP_HOST to an empty string. Though testing on the instance suggests that the value is set to
false
.Either way, the check previously was only looking at the existence of the config variable which meant project environment vars were always being overwritten with defaults set in the
mapPlatformShMail
function even when the values were not set.I've switched the check to use
empty()
which allows the custom environment variables to be set correctly.