Ticket #17811: 17811.diff

File 17811.diff, 721 bytes (added by Daniel Roseman, 13 years ago)
  • django/core/mail/__init__.py

     
    7878    connection = connection or get_connection(username=auth_user,
    7979                                    password=auth_password,
    8080                                    fail_silently=fail_silently)
    81     messages = [EmailMessage(subject, message, sender, recipient)
     81    messages = [EmailMessage(subject, message, sender, recipient,
     82                             connection=connection)
    8283                for subject, message, sender, recipient in datatuple]
    8384    return connection.send_messages(messages)
    8485
Back to Top