Skip to content

Conversation

snipe
Copy link
Member

@snipe snipe commented Sep 1, 2025

Not sure if this will work as expected, still needs a lot of testing.

@snipe snipe requested a review from uberbrady September 1, 2025 16:05
Copy link
Member

@uberbrady uberbrady left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's unfortunately very hard to see what actually is changing here. For some of the issues that our user reported. I think the MAIL_FROM_ADDR issue that I mentioned could be a problem. Some comments in here would be helpful, as some of these config settings are not self-explanatory.

'from' => [
'address' => env('MAIL_FROM_ADDR', null),
'name' => env('MAIL_FROM_NAME', null),
'address' => env('MAIL_FROM_ADDRESS', '[email protected]'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing the name of this .env var is going to cause a lot of problems - if we want to use the 'new' way going forward, can we do something like:

env('MAIL_FROM_ADDRESS',env('MAIL_FROM_ADDR','[email protected]'))

That way the old env var will still work - this could definitely be an issue for our hosted platform.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(See how @jerm handled this in MAIL_MAILER and MAIL_DRIVER in this file, above)

'theme' => 'default',

'paths' => [
resource_path('views/vendor/mail'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This path is still populated - is removing this needed? Or is it a default that's now fully-baked in, and thus no longer needed in this config file?

|
*/

'scheme' => env('MAIL_SCHEME'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this do?

*/

'scheme' => env('MAIL_SCHEME'),
'url' => env('MAIL_URL'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this also - is that the base URL for images or links in mail, or something else?

@snipe
Copy link
Member Author

snipe commented Sep 10, 2025

These values are pulled from the current Laravel 11 mail config. They don't explain all of them well, so I don't actually know how required they are.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants