mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-05 21:24:45 +00:00
set smtp debug
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2098 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
9829268533
commit
9e843d71a7
1 changed files with 4 additions and 1 deletions
|
|
@ -120,7 +120,10 @@ class MailtoUrl (urlbase.UrlBase):
|
|||
preference = rdata.preference
|
||||
linkcheck.log.debug(linkcheck.LOG_CHECK,
|
||||
"SMTP check for %r (pref %d)", host, preference)
|
||||
self.url_connection = smtplib.SMTP(host)
|
||||
self.url_connection = smtplib.SMTP()
|
||||
if self.consumer.config.get("debug"):
|
||||
self.url_connection.set_debuglevel(1)
|
||||
self.url_connection.connect(host)
|
||||
linkcheck.log.debug(linkcheck.LOG_CHECK,
|
||||
"SMTP connected!")
|
||||
smtpconnect = 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue