Click here to Skip to main content
15,937,429 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI I have code as below

SmtpClient client = new SmtpClient("80.97.*.*", 25);
client.UseDefaultCredentials = false;

client.Credentials = new NetworkCredential("username", "password");

string toAddress = "";
string fromAddress = "";
string messageSubject = "Your Subject";
string body = "Body of your email here";

MailMessage mm = new MailMessage(toAddress, fromAddress, messageSubject, body);

mm.BodyEncoding = UTF8Encoding.UTF8;


Please help me..

nandakishoreroyal 25-Mar-14 5:24am    
what error have you got?

1 solution

Share this answer

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