Send emails via django.core.mail.send_mail
Email body
Email subject
Send emails via django.core.mail.EmailMultiAlternatives
Email body mapping content type to message. Requires at least a key for default_content_type.
The default content type.
Generates email bodies from templates.
Example : |
---|
class SignupMessage(TemplatedEmailBackend):
name = 'signup'
subject = "Welcome to %s" % Site.objects.get_current().name
content_types = ['text/plain', 'text/html']
The SignupMessage class would look up following templates for the email body:
Default content types to render
Render message bodies by using all the content types defined in content_types