Ticket #55036: patch-src-twisted-mail-smtp.py.diff

File patch-src-twisted-mail-smtp.py.diff, 638 bytes (added by ryandesign (Ryan Carsten Schmidt), 7 years ago)
  • src/twisted/mail/smtp.py

    Fix unhandled error when sending email
    https://twistedmatrix.com/trac/ticket/9180
    https://github.com/twisted/twisted/pull/816
    https://github.com/twisted/twisted/commit/5ddbe39695f65e2cd485c997fe2af7afdfe4b751
    old new def __init__(self, fromEmail, toEmail, file, deferred, retries=5, 
    18961897                if not isinstance(_email, bytes):
    18971898                    _email = _email.encode('ascii')
    18981899
    1899                 toEmailFinal.append(email)
     1900                toEmailFinal.append(_email)
    19001901            toEmail = toEmailFinal
    19011902
    19021903        self.fromEmail = Address(fromEmail)