-
-
Notifications
You must be signed in to change notification settings - Fork 818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Email sending fails or succeeds when using HttpProxyClient. #1603
Comments
In the failure log, it looks like MailKit is still waiting for the 220 greeting from the SMTP server. It's possible that the HttpProxyClient is eating the 220 greeting... |
The above commit probably fixes the issue, but if you could test the packages that will be published to https://www.myget.org/feed/mimekit/package/nuget/MailKit and verify that the fix works, that would be helpful. I think the version will be 4.1.0.698 (it should be the second build of the day). It will take about 30-45 minutes to be uploaded. |
Thanks for the quick response. I am amazed at how quickly the problem was addressed. If no errors occur after a period of testing, we would like to close this issue. |
I still fail to send email on rare occasions. Log of failure
|
Looks like in your new case, it's not proxy-related. It looks like MailKit is waiting for a response from the server after it sent the password. |
I'm going to close this particular issue now because I'm pretty sure the HttpProxy issue is fixed. |
When using HttpProxyClient to send email, sometimes it succeeds, sometimes it fails.
If it fails, it will result in a timeout error.
It appears that the program is not sending the helo command in 4. above.
I asked Microsoft to investigate the logs on the OS side,
Although the OS was passing data to the application with SMTP response code 220,
After that, the OS did not receive a request from the application to send the helo command.
Confirmed in the verification environment,
Only when HttpProxyClient is enabled, email sending may succeed or fail.
It seems to be a bug in Mailkit's HttpProxyClient, can you confirm?
Platform:
Exception
To Reproduce
Execute the following program that was built and made into exe
Code Snippets
Partial code excerpt
Protocol Logs
Partially masked with [*]
Log when successful
Log of failures
The text was updated successfully, but these errors were encountered: