• R David Murray's avatar
    #5713: Handle 421 error codes during sendmail by closing the socket. · 06c2f85c
    R David Murray authored
    This is a partial fix to the issue of servers disconnecting unexpectedly; in
    this case the 421 says they are disconnecting, so we close the socket and
    return the 421 in the appropriate error context.
    
    Original patch by Mark Sapiro, updated by Kushal Das, with additional
    tests by me.
    06c2f85c
smtplib.py 34.7 KB