v1.11.0
Added
- Automatic logging for programmatic sends —
TemplateMailnow creates a Sent Emails log entry on its own whenever logging is enabled in the settings, so emails sent from code show up in the log just like ones sent from the admin panel. Queued mail is logged at dispatch time with aQueuedstatus and updated toSentorFailedonce the worker processes it. Log creation failures are reported but never block the email from going out (#23, thanks @gazohu) - Log entries now record who sent the email: the authenticated user at the time the mailable is built is carried across queueing, so queued mail is attributed to the person who triggered it instead of nobody. System-triggered mail (jobs, listeners, guest-initiated resets) is logged without a user
TemplateMail::withoutLogging()opts a single email out of loggingTemplateMail::withLogging()called without an argument now forces a log entry even when logging is disabled in the settings. Passing aSentEmailstill hands over an externally created record, as before — previously a barewithLogging()call silently did nothingTemplateMail::withoutStoringRenderedBody()logs the email but keeps the rendered HTML out of the database
Changed
- The built-in welcome, password reset, and email verification notifications now appear in the Sent Emails log when logging is enabled. Reset and verification emails never store their rendered body, since it contains signed URLs
Full Changelog: v1.10.0...v1.11.0