kmisc 2.1.107__tar.gz → 2.1.108__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {kmisc-2.1.107 → kmisc-2.1.108}/PKG-INFO +1 -1
- {kmisc-2.1.107 → kmisc-2.1.108}/kmisc/__init__.py +9 -1
- {kmisc-2.1.107 → kmisc-2.1.108}/kmisc.egg-info/PKG-INFO +1 -1
- {kmisc-2.1.107 → kmisc-2.1.108}/LICENSE +0 -0
- {kmisc-2.1.107 → kmisc-2.1.108}/README.md +0 -0
- {kmisc-2.1.107 → kmisc-2.1.108}/kmisc.egg-info/SOURCES.txt +0 -0
- {kmisc-2.1.107 → kmisc-2.1.108}/kmisc.egg-info/dependency_links.txt +0 -0
- {kmisc-2.1.107 → kmisc-2.1.108}/kmisc.egg-info/top_level.txt +0 -0
- {kmisc-2.1.107 → kmisc-2.1.108}/pyproject.toml +0 -0
- {kmisc-2.1.107 → kmisc-2.1.108}/setup.cfg +0 -0
- {kmisc-2.1.107 → kmisc-2.1.108}/setup.py +0 -0
@@ -1603,12 +1603,20 @@ class EMAIL:
|
|
1603
1603
|
if IsNone(self.user): self.user=sender
|
1604
1604
|
try:
|
1605
1605
|
server=smtplib.SMTP_SSL(self.server,self.port,context=context)
|
1606
|
+
except:
|
1607
|
+
print(f'Can not connect to {self.server}:{self.port}. If local server then please check the SMTP Server')
|
1608
|
+
return False
|
1609
|
+
try:
|
1606
1610
|
server.login(self.user, self.password)
|
1607
1611
|
except:
|
1608
1612
|
print('Login fail at the server({})'.format(self.server))
|
1609
1613
|
return False
|
1610
1614
|
else:
|
1611
|
-
|
1615
|
+
try:
|
1616
|
+
server=smtplib.SMTP(self.server,self.port)
|
1617
|
+
except:
|
1618
|
+
print(f'Can not connect to {self.server}:{self.port}. If local server then please check the SMTP Server')
|
1619
|
+
return False
|
1612
1620
|
if self.tls:
|
1613
1621
|
if not self.password:
|
1614
1622
|
print('It required mail server({}) login password'.format(self.server))
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|