Click here to Skip to main content
15,905,612 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,
i have a problem that my code is not working properly,
if domail is www.abc.com then working and if domain is www.abc.in then not working,

My code is as below.




XML
MailMessage msgMail = new MailMessage();
            msgMail.From = new MailAddress(txtEmail.Text);
            msgMail.To.Add("xyz@abc.in");
            msgMail.Subject = "Query";
            msgMail.IsBodyHtml = true;
            msgMail.Body = "I am Boy"
            SmtpClient client = new SmtpClient("email.abc.in";);
            client.Credentials = new NetworkCredential("info@abc", "dkr@123");
            client.Send(msgMail);





Please help as soon as possible.


thanks
Dharmendra
Posted
Updated 30-May-12 0:26am
v2
Comments
sunandandutt 30-May-12 6:26am    
do not write your Email Id Here.
Prosan 30-May-12 6:27am    
what problem is coming.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900