How to properly create a custom MailTemplate? #46
Unanswered
Marchiuzzz
asked this question in
Q&A
Replies: 1 comment
-
Aghh my bad, it was a typo, used the wrong Mailable path in database. However, I found another issue with the documentation - shouldn't
Sorry, I don't know how to create a PR |
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
-
I'm trying to implement a custom MailTemplate class called
CustomMailTemplate
. However I don't understand if it's suppose to replace theMailTemplate
model completely (should I even create mail_templates table if I want to use a custom one?). I renamed the published migration and adapted it to my needsI'm trying to use it in my
SubscriptionMail
mailable, I have added this lineprotected static $templateModelClass = App\CustomMailTemplate::class;
. However, if I try to send an email, I get an errorNo mail template exists for mailable SubscriptionMail
Beta Was this translation helpful? Give feedback.
All reactions