Educational Materials like Computer, engineering, software and Property , Entertainment: C# code for Sending an email
Custom Search

Subscribe Now: Feed Icon

February 16, 2012

C# code for Sending an email

C# code for Sending an email

private void send_mail()
{
MailMessage mm = new MailMessage("write_emailid_reciever", txtEmailId.Text);
mm.Subject = "Thnaks for your Feedback.";
mm.Body = "Dear Costomer Thanks for your feedback.You are more than welcome to give us a try again. Thank you.";
SmtpClient sc = new SmtpClient("mailing_server", 25);//25-is smtp port number
NetworkCredential nc = new NetworkCredential();
nc.UserName = "write_emailid_sender";
nc.Password = "password";
sc.Credentials = nc;
sc.Send(mm);
}

0 comments:

Post a Comment

Follow by Email

Video Bar

Loading...

Followers

Educational Materials like Computer, engineering, software and Property , Entertainment

Recent Visitors

Active Search Results
Wink Bingo | Slots Tips | Football manager 2010 | blackjack free | Poker Stars
Submitdomainname.com