Opened 8 years ago
Last modified 6 years ago
#28726 closed Cleanup/optimization
Brackets illegal in DEFAULT_FROM_EMAIL name part — at Initial Version
| Reported by: | Ciaran Courtney | Owned by: | nobody |
|---|---|---|---|
| Component: | Core (Mail) | Version: | 3.0 |
| Severity: | Normal | Keywords: | email DEFAULT_FROM_EMAIL |
| Cc: | Adam Johnson | Triage Stage: | Accepted |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Using DEFAULT_FROM_EMAIL = '[test] Bob <noreply@example.com>' will fail in django.core.mail.message.sanitize_address() at parseaddr(force_text(addr))
Possibly other characters are illegal. The docs don't mention the use of DEFAULT_FROM_EMAIL in this way, perhaps documentation can cover it.
Note:
See TracTickets
for help on using tickets.