Improve error reporting #48

Merged
reinhard-mueller merged 3 commits from master into master 2021-02-11 11:37:42 +01:00

3 Commits

Author SHA1 Message Date
Reinhard Müller 4ca02d4072 Fix typo 2021-02-10 17:52:10 +01:00
Reinhard Müller b2cef9c8c2 Remove unused variable 2021-02-10 17:09:12 +01:00
Reinhard Müller 294c4e7174 Improve error reporting
* Unify error message format, always include SMTP status code
* Use "with SMTP" to properly close connection even in case of error
* Establish connection after setting debug level so this is debugged as
  well
* Properly handle SMTP error status codes on connection
* Don't return ambigious SMTP status codes, as they are not used anyway
2021-02-09 23:37:07 +01:00