mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-07 04:56:42 +02:00
Merge pull request #435 from muhammetfatihdogan/patch-1
initiate starttls if port 587
This commit is contained in:
@@ -259,6 +259,10 @@ def saveSMTPSettings(request):
|
||||
|
||||
try:
|
||||
verifyLogin = smtplib.SMTP(str(smtpHost), int(smtpPort))
|
||||
|
||||
if int(smtpPort) == 587:
|
||||
verifyLogin.starttls()
|
||||
|
||||
verifyLogin.login(str(smtpUserName), str(smtpPassword))
|
||||
|
||||
writeToFile = open(smtpPath, 'w')
|
||||
|
||||
Reference in New Issue
Block a user