We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f8ca56 commit c6824abCopy full SHA for c6824ab
1 file changed
emailMarketing/emailMarketingManager.py
@@ -517,6 +517,10 @@ def saveSMTPHost(self):
517
518
try:
519
verifyLogin = smtplib.SMTP(str(smtpHost), int(smtpPort))
520
+
521
+ if int(smtpPort) == 587:
522
+ verifyLogin.starttls()
523
524
verifyLogin.login(str(smtpUserName), str(smtpPassword))
525
526
admin = Administrator.objects.get(pk=userID)
@@ -618,6 +622,10 @@ def smtpHostOperations(self):
618
622
619
623
verifyHost = SMTPHosts.objects.get(id=id)
620
624
verifyLogin = smtplib.SMTP(str(verifyHost.host), int(verifyHost.port))
625
626
+ if int(verifyHost.port) == 587:
627
628
621
629
verifyLogin.login(str(verifyHost.userName), str(verifyHost.password))
630
631
data_ret = {"status": 1, 'message': 'Login successful.'}
0 commit comments