Replies: 1 comment
-
@miken32 For new applications, MailMessage is generally the preferred class for mail-based notifications due to its simplicity, integration with Laravel's notification system, and support for Markdown templates. However, if you need more control over the email content, attachments, or complex email structures, Mailable is the better choice |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
All my notifications'
toMail
methods return an instance ofMailable
but all the notification documentation and the stubs refer toMailMessage
instead. The app was written back in the Laravel 5.2 days so don't remember why we chose one over the other, or even if there was a choice back then.For a new app, is
MailMessage
now the preferred class for mail-based notifications?Beta Was this translation helpful? Give feedback.
All reactions