Code

Ticket #5615: 5615.diff

File 5615.diff, 605 bytes (added by tvrg, 7 years ago)
Line 
1Index: docs/email.txt
2===================================================================
3--- docs/email.txt      (revision 6426)
4+++ docs/email.txt      (working copy)
5@@ -317,7 +317,7 @@
6     subject, from_email, to = 'hello', 'from@example.com', 'to@example.com'
7     text_content = 'This is an important message.'
8     html_content = '<p>This is an <strong>important</strong> message.</p>'
9-    msg = EmailMultiAlternatives(subject, text_content, from_email, to)
10+    msg = EmailMultiAlternatives(subject, text_content, from_email, [to])
11     msg.attach_alternative(html_content, "text/html")
12     msg.send()
13