Hello, I used Aspose.Email .net
Sometime i got error “The operation has timed out.” but recipient can get my email.
Error message: Aspose.Email.Mail.SmtpException: The operation has timed out. at Aspose.Email.Mail.SmtpClient.BulkSend(IEnumerator messages)
but
How can i do?
Thanks in advance.
Hi Montree,
Thank you for your inquiry.
Can you please share more details about the server that you are connecting to and sending the email through? We have tested this issue at our end with the latest version of Aspose.Email for .NET 5.2.0 and using Gmail as well as Exchagne server for sending out the emails, but could not face any such issue. You may also try increasing the timeout of SmtpClient a little to see if the exception fades out.
Here is SMTP server as requested.
Server 1 : 203.78.99.56
User : testsmtp@molcct.com
PW : LBqAooZygtc*
Server 2 : 203.78.99.244
User : testsmtp@thbkkcs.com
PW : 7WIw2&s1)flN
Thank you.
Hi Montree,
Thank you for sharing the server details. However, I am unable to send the email using the settings you have shared and the below code sample. Can you please share your sample code with us for our further investigation? Also, if there is a browser based login to these servers, please provide us with the URL of the website.
Code:
SmtpClient client = new SmtpClient("203.78.99.56", 587, "testsmtp@molcct.com", "LBqAooZygtc*");
MailMessage eml = new MailMessage("testsmtp@molcct.com", "to@domain.com", "Subject", "Body");
client.Send(eml);