You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used offical Email tool to send email by smtp and get error.
Tool responce and my parameter here:
"Results for email_1":{3 items
"success":false
"reason":"An exception occurred while running this function (2). See exception for more details and contact support if this persists ([email protected])"
"exception":"SMTPServerDisconnected - Connection unexpectedly closed"
}
To use ssl, I change the "s = smtplib.SMTP(host=smtp_host, port=smtp_port)" to "s = smtplib.SMTP_SSL(host=smtp_host, port=smtp_port)" and hot load the python-app. That's working.
To use ssl, I change the "s = smtplib.SMTP(host=smtp_host, port=smtp_port)" to "s = smtplib.SMTP_SSL(host=smtp_host, port=smtp_port)" and hot load the python-app. That's working.
So this fix worked for you? Maybe we should try to autodiscover it and failover to SSL if need be? 🤔
And in Shuffle's scenario, "smtplib.SMTP" cause TIMEOUT(default 300s). This makes autodiscover may not be very easy.
For compatibility, I think you can add a switch parameters and a branch to make smtp connection with " smtplib.SMTP_SSL". But that may compromise the transparency of the tool and make tool hard to understand.
Another way I think is give "smtplib.SMTP(timeout=)" a small timeout parameter, then autodiscover the timeout exception and failover to "smtplib.SMTP_SSL"
I used offical Email tool to send email by smtp and get error.
Tool responce and my parameter here:
"Results for email_1":{3 items
"success":false
"reason":"An exception occurred while running this function (2). See exception for more details and contact support if this persists ([email protected])"
"exception":"SMTPServerDisconnected - Connection unexpectedly closed"
}
Variables (click to expand)
username: [email protected]
smtp_host: smtp.exmail.qq.com
smtp_port: 465
recipient: [email protected]
subject: SHuffle Test Email
body: 123
ssl_verify: true
body_type: plain
The text was updated successfully, but these errors were encountered: