Closed alarsyo closed 2 years ago
Yes, this is a super old warning that I've elect to ignore because asking to provide blank files, instead of just no file at all, is a really poor API choice from djmail. I'd prefer djmail to support not providing some files. I wouldn't care too much about polluting logs. What you can do if you really care, is to blackhole djmail warnings, or maybe this one in particular if this can be expressed using Django/Python logging filtering.
The logs are filled with erros like these:
This happens because
djmail
looks for a*.html.html
template along with a plain text*.text.html
template. From djmail's code there seems to be no way to disable sending of HTML emails.Possible solutions include:
*.html.html
template, even if we fill it with plain text ? For what it's worthdjmail
seems to be doing the right thing, providing both plain text and html as an alternative in the same email.