Error handling in smtp

james blair talktojamesblair at yahoo.com
Thu Mar 25 06:22:35 EST 2004


Hi
I want to handle all the error that are thrown by smtp
Do I have to handle each error seperately
i.e
except SMTPConnectError:
except SMTPResponseException: etc


Also, howe is this error handled
error: (10061, 'Connection refused')
I tried to handle it with except SMTPConnectError:
But noluck
Thanks,
James



More information about the Python-list mailing list