1
Answer

Error In Send mail .?

Ajit More

Ajit More

10y
556
1
 
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)