Ticket #5615: 5615.diff
File 5615.diff, 605 bytes (added by , 17 years ago) |
---|
-
docs/email.txt
317 317 subject, from_email, to = 'hello', 'from@example.com', 'to@example.com' 318 318 text_content = 'This is an important message.' 319 319 html_content = '<p>This is an <strong>important</strong> message.</p>' 320 msg = EmailMultiAlternatives(subject, text_content, from_email, to)320 msg = EmailMultiAlternatives(subject, text_content, from_email, [to]) 321 321 msg.attach_alternative(html_content, "text/html") 322 322 msg.send() 323 323