Ticket #5615: 5615.diff

File 5615.diff, 605 bytes (added by tvrg, 8 years ago)
  • docs/email.txt

     
    317317    subject, from_email, to = 'hello', 'from@example.com', 'to@example.com'
    318318    text_content = 'This is an important message.'
    319319    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])
    321321    msg.attach_alternative(html_content, "text/html")
    322322    msg.send()
    323323
Back to Top