fix logic
This commit is contained in:
parent
abfeafa026
commit
70b8f09ccb
|
@ -221,8 +221,9 @@ class CoreSettings(BaseAuditModel):
|
|||
)
|
||||
server.send_message(msg)
|
||||
server.quit()
|
||||
if self.smtp_host == "smtp-relay.gmail.com" and not self.smtp_requires_auth:
|
||||
else:
|
||||
# gmail smtp relay specific handling.
|
||||
if self.smtp_host == "smtp-relay.gmail.com":
|
||||
server.ehlo()
|
||||
server.starttls()
|
||||
server.send_message(msg)
|
||||
|
|
Loading…
Reference in New Issue