vintasoftware / django-templated-email

Django module to easily send templated emails using django templates, or using a transactional mail provider (mailchimp, silverpop, etc.)
MIT License
702 stars 130 forks source link

[FEATURE SUGGESTION] Provide an admin interface for templates #133

Open YPCrumble opened 3 years ago

YPCrumble commented 3 years ago

Thanks for maintaining this repo! I have a feature suggestion that would really help some nontechnical members of my team.

A really nice feature to have would be an admin interface for non-technical users to view templates and, ideally using a WYSIWYG editor, edit the templates.

For templates built in a html file, providing a read-only admin interface would be nice as well, including the template as well as the to, from, subject, etc. fields that are part of the email.

Is this something that would be a welcome addition? Any thoughts on whether this would be reasonably doable? For a WYSIWYG editor it would likely mean storing those templates that use WYSIWYG in the database.

Thanks again fro maintaining django templated email, and for considering this!

fjsj commented 3 years ago

Hi @YPCrumble, that's a great suggestion, but I think that's best to have that as a separate repo/Django app called django-templated-email-admin or something similar.

Once that's implemented, we can add a function called send_admin_templated_mail to django-templated-email. Alternatively, we can support admin-created template names in the existing send_templated_mail function. Note any of those would only work if django-templated-email-admin is installed.

If you want to proceed with the implementation of this new app, I suggest you to create the new repo. Feel free to add me as a reviewer to PRs as you add functionality if you wish.