Skip to content
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

Replace cdashmail() email logging with Laravel event listener #2623

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

williamjallen
Copy link
Collaborator

The preferred way to handle email notifications in Laravel is to use Mailables. Any emails sent outside the legacy cdashmail() function, including Mailables, cannot take advantage of the email logging functionality cdashmail() provides.

This PR moves that logging functionality to an "Event Listener"--Laravel's preferred way to respond to events such as emails being sent. cdashmail() was also removed since the logging changes rendered it obsolete.

I plan to make a series of PRs to convert each of our raw text emails to Mailables in the future.

Copy link
Member

@josephsnyder josephsnyder left a comment

Choose a reason for hiding this comment

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

Tested with the "Forgot Password" and "Message Site Maintainers" functionality, no issues with either email even with APP_DEBUG=true. LGTM!

@josephsnyder josephsnyder added this pull request to the merge queue Dec 18, 2024
Merged via the queue into Kitware:master with commit 65fe376 Dec 18, 2024
6 checks passed
@williamjallen williamjallen deleted the mail-listener branch December 18, 2024 20:47
@williamjallen williamjallen added this to the v3.7 milestone Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants