Opened 18 years ago
Closed 18 years ago
#5503 closed (fixed)
Email - Sending multiple content types.
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | Documentation | Version: | dev |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
This line of code in the example:
msg = EmailMultiAlternatives(subject, text_content, from_email, to)
Should be
msg = EmailMultiAlternatives(subject, text_content, from_email, [to])
Because the Email* classes in django always take a list of recipients to my knowledge.
Note:
See TracTickets
for help on using tickets.
(In [6351]) Fixed #5503 -- corrected a small typo in email example. Thanks, trey@….