Ajit More

Ajit More

  • NA
  • 569
  • 336.3k

Error In Send mail .?

Aug 11 2014 3:17 AM
 
Hi,
Friend when I click on the send button  of the following page
 
http://www.anjanasteel.com/anjanasteel/SendInquiry.aspx 
 
I got this error in URL and my mail not send
 
http://www.anjanasteel.com/anjanasteel/Default.aspx?aspxerrorpath=/anjanasteel/SendInquiry.aspx 
 
Following is my code::
 
MailMessage mailMessage = new MailMessage();
mailMessage.From = new MailAddress("[email protected]");
mailMessage.Subject = "ABC Quotation";
mailMessage.Body = "<img src ='http://www.abcl.com/images/logo.png' alt='logo' /><br /><div style = 'border-top:3px solid #79AD42'>&nbsp;</div>Please Find Attachment<br/><br/><br/>Regards,<br/>Anjana Steel Traders<br/><br/>Website::&nbsp;&nbsp;www.anjanasteel.com";
mailMessage.IsBodyHtml = true;
mailMessage.To.Add(new MailAddress("[email protected]"));
SmtpClient mSMTPClient = new SmtpClient("mail.abc.com", 25);
mSMTPClient.Send(mailMessage);
mailMessage.Dispose(); 
 
 
 

Answers (1)