ConnectAsync seems to hang. #1937
Replies: 2 comments
-
That tells me the problem is the way you are doing threading in your app. Try: await _smtp_client.ConnectAsync(host, port, SecureSocketOptions.StartTls).ConfigureAwait (false); |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thanks. That was the issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
If I use ConnectAsync, it hangs.
If I use, Connect or ConnectAsync.Wait, it works.
Timeout for _smtp_client is set to 5000.
What could be the issue here?
The host is smtp.office365.com and the port is 587.
My code:
Beta Was this translation helpful? Give feedback.
All reactions