We are using Aspose.Network[Version 126.96.36.199] component to send an email. But sometimes it's working and sometimes it's not.
Please see the following code which i have written.
SMTPServerAddress[IP ADDRESS] mentioned in web.config file.
Aspose.Network.License lic = new Aspose.Network.License();
Aspose.Network.Mail.MailMessage msg1 = new Aspose.Network.Mail.MailMessage();
msg1.Subject = "ThirupathiHY";
msg1.To = "email@example.com";
msg1.TextBody = "Thirupathi_New";
msg1.Sender = "firstname.lastname@example.org";
Aspose.Network.Mail.SmtpClient client1 = new Aspose.Network.Mail.SmtpClient(System.Configuration.ConfigurationSettings.AppSettings["SMTPServerAddress"]);
client1.AuthenticationMethod = Aspose.Network.Mail.SmtpAuthentication.None;
Why it's behaving like that. If i use simple .net MailMessage class with same SMTP address,it's working fine.
I would appreciate for quick reply. Its urgent issue.
Thanks in Advance