I am using v184.108.40.206 of aspose email. I have an mvc based unit test that gets called to test our email system. a code sample below shows how we are sitting in a loop after an email has been sent and waiting for the email to arrive. I believe i can run this just fine if i kick off the test once, but if i kick off the two tests at once, i seem to always get the exception thrown at the bottom of this email. Is there some kind of issue in a multiuser scenerio with aspose.email or any ideas on why this would be happening?
Thank you for contacting Aspose Support team.
We have looked into your test code from our perspective and also tried the same at our end. It doesn’t raise any issue and the email count is listed properly. Can you please elaborate what you mean by “but if i kick off the two tests at once, i seem to always get the exception thrown at the bottom of this email”. If possible, please share your sample MVC project with us that can be used to reproduce this issue. We’ll look into it and share our feedback with you.
So this is basically an MVC site with a page that allows you to run the test manually with button. if i open up two browsers pointing to site url and then click on browser 1 page button and then click on browser 2 page button, so now two different tests are running at the same time, I get the error listed above.
We used the same logic at our end previously while testing the issue. Please spare us a little time to investigate the issue further. We’ll share our feedback with you here soon.
We have further investigated this issue at our end with a WinForm applicaiton where two buttons run the same test in parallel threads. No such issue was faced as you have mentioned. Please check the attached sample project that we have used for testing this issue further. The email is sent directly from outlook to our test account that we check in a loop for message arrival. You may please check it at your end and share your feedback with us if it raises exception. Also, you may modify the application (if required) and share with us back for reproducing the issue at our end.
is it ok if i send test emails to the account in that winformapplication? what is the full email address? without the delay that can occur with sending email, i dont know if this will fail.