Without using a full blown extension, how can we simply replace the plain text email templates with pre-formatted HTML ones from the file system?
I believe the general process was meant to be:
- Create a CustomNotificationMailer which extends Flarum/NotificationMailer
- Create a service provider
- Bind NotificationMailer to use CustomNotificationMailer in the register method
- Use extend.php to register the service provider
- Replace
send()
in your CustomNotificationMailer with one which returns HTML email
However we're unable to get the replacement to work, it seems to always execute the default ones, almost like the container is delivering the original class and not the replacement.
Please advise