The .erb template can’t be overridden by a plugin.
Car Talk has its own digest emails. How we did that in a plugin was to treat it as a new email entirely. You could disable Discourse’s default digest emails and then use your own. It’s more complicated than making a new template though…
Create a new scheduled job in the plugin that is the same as enqueue_digest_emails.rb but will queue your new email. Jobs.enqueue(:my_custom_digest_email, user_id: user_id)
One small thing that could be useful here: a way to change the header image size for this email. See below images — in the first (default) the header image is almost comically tiny (40px height). The latter I tried making three times larger (120px, the actual size of the uploaded image) and it looks much better. Not sure if there’s any way to do this currently but would be nice to be able to use the larger image!
Where can I find this file in my server? I need to change it manually. As reported here, digest emails have serious problems with rtl language and I cant wait till it gets fixed.
Is there anyway to style the element span.badge-category-bg used in the New for you section of these emails? I’ve noticed there’s some inheritence of styling from the customisable stylesheets into the digest, and we have a problem where these items are not sized properly in email clients.