Send HTML templated emails via SMTP
correo - Password recovery template with verification codesubject and message for rendering.["[email protected]", "[email protected]"]settings.py:
django.core.mail.backends.smtp.EmailBackendmail.hangaroa.ec587True[email protected] (sender address)correo)correo template, the context includes:
name: Subject valuecode: Message value (verification code)subject: Subject valuemessage: Message valuerender_to_string functionemail.content_subtype = "html"EMAIL_HOST_USER in settings