When I am trying to sending mail from local PC . The error
Server Has exceeded SSP rate limit.
Keeps coming. When I upload the same to my cloud server and sending mail from there , it works perfectly . why I am getting this issue. This is the code I'm using to send the mail.
MailMessage objMailMsg;
Mail objMail = new Mail();
ClsCommonFunctions objMessage = new ClsCommonFunctions();
objMailMsg = new MailMessage();
objMailMsg.To.Add(to.Trim());
objMailMsg.From = new MailAddress("xxx@xx.com", "xxxxx");
objMailMsg.Subject = subject;
objMailMsg.Body = body;
objMailMsg.IsBodyHtml = true;
objMailMsg.BodyEncoding = System.Text.Encoding.GetEncoding("windows-1256");
objMailMsg.Headers.Add("Disposition-Notification-To", "xxx@xxx.com");
SmtpClient smtp = new SmtpClient("yyyy.com");
smtp.Port = 25;
smtp.Credentials = new System.Net.NetworkCredential("xxx@xxx.com", "password");
try
{
smtp.Send(objMailMsg);
}
catch (Exception ex)
{
objMessage.show_message(this, ex.Message);
}
Thread.Sleep(1000);
objMailMsg.To.Clear();
objMailMsg.Dispose();