Fixed #5615: Corrected a typo in docs/email.txt. Thanks, raprasad@gmail.com.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6431 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
James Bennett 2007-09-28 03:07:36 +00:00
parent 39d61439e0
commit 4b4ecb6d66
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ To send a text and HTML combination, you could write::
subject, from_email, to = 'hello', 'from@example.com', 'to@example.com' subject, from_email, to = 'hello', 'from@example.com', 'to@example.com'
text_content = 'This is an important message.' text_content = 'This is an important message.'
html_content = '<p>This is an <strong>important</strong> message.</p>' html_content = '<p>This is an <strong>important</strong> message.</p>'
msg = EmailMultiAlternatives(subject, text_content, from_email, to) msg = EmailMultiAlternatives(subject, text_content, from_email, [to])
msg.attach_alternative(html_content, "text/html") msg.attach_alternative(html_content, "text/html")
msg.send() msg.send()