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
Is your feature request related to a problem? Please describe.
When the connection fails, one receives the misleading exception: "please run connect() first" which is coming from red-mail calling smtplib.
Describe the solution you'd like
Provide an accurate and descriptive feedback that connection failed.
A little more detail on this: this cryptic error message only occurs in our work environment where there are proxies that block access to certain domains.
At home, I get a descriptive error message for the following program:
fromredmailimportEmailSenderemail=EmailSender(
host='fakedomain.livingcosmos.org',
port=25
)
defmain():
email.send(
subject='email subject',
sender="[email protected]",
receivers=['[email protected]'],
text="Hi, this is an email."
)
# Press the green button in the gutter to run the script.if__name__=='__main__':
main()
Is your feature request related to a problem? Please describe.
When the connection fails, one receives the misleading exception: "please run connect() first" which is coming from red-mail calling smtplib.
Describe the solution you'd like
Provide an accurate and descriptive feedback that connection failed.
We ran the simplest red-mail script possible:
and got a totally misleading error message: "please run connect() first" instead of being told the connection failed.
Once we switched host to
localhost
the script ran fine.The text was updated successfully, but these errors were encountered: