Code

Opened 7 years ago

Closed 7 years ago

#5503 closed (fixed)

Email - Sending multiple content types.

Reported by: Trey <trey@…> Owned by: nobody
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: UI/UX:

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.

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by ubernostrum

  • Resolution set to fixed
  • Status changed from new to closed

(In [6351]) Fixed #5503 -- corrected a small typo in email example. Thanks, trey@….

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.