#34126: Exception sending EmailMessage with html_message=True
------------------------------+--------------------------------------
Reporter: openHBP | Owner: nobody
Type: Bug | Status: closed
Component: Core (Other) | Version: 4.1
Severity: Normal | Resolution: invalid
Keywords: send_mail | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------------------------
Changes (by Alex Morega):
* status: new => closed
* resolution: => invalid
Comment:
The `html_message` argument is meant to contain the HTML version of the
email, it's not a boolean flag. The `message` argument should be the
plaintext version.
https://docs.djangoproject.com/en/stable/topics/email/#send-mail
{{{
send_mail(
'Subject here',
'Here is the message.',
'[email protected]',
['[email protected]'],
fail_silently=False,
html_message='<p>Here is the message.</p>'
)
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34126#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701841eac3b3e-0b097927-7544-4e82-9602-11d29de5258d-000000%40eu-central-1.amazonses.com.