Click here to Skip to main content
15,891,644 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 = "inoth.g17@gmail.com.com";
string fromAddress = "from@domain.com";
string messageSubject = "Your Subject";
string body = "Body of your email here";


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

mm.BodyEncoding = UTF8Encoding.UTF8;

client.Send(mm);


Please help me..


Thanks,
-RG
Posted
Comments
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