reset and begin
7/16/2009

send mail window C#

MailMessage MailMesaji = new MailMessage();

MailMesaji.Subject = "subject";

MailMesaji.Body = "mail body";

MailMesaji.BodyEncoding = Encoding.GetEncoding("Windows-1254"); //Encoding

MailMesaji.From = new MailAddress("shimi.gov@gmail.com");

MailMesaji.To.Add(new MailAddress("shimi.gov@gmail.com"));

System.Net.Mail.SmtpClient Smtp = new SmtpClient();

Smtp.Host = "smtp.gmail.com"; // for example gmail smtp server

Smtp.EnableSsl = true;

Smtp.Credentials = new System.Net.NetworkCredential("shimi.gov@gmail.com", "password");

Smtp.Send(MailMesaji);
Form1.ActiveForm.Text = "thanh cong";

Bloger Comments
G+ Comments
Comments FaceBook

No comments:

List

Profiles Information


About me : Nothing is 1 vài thứ - 1985

Places I've Lived : I Hà Nội

Home Page : http://www.shimivn.blogspot.com/

Think : 1:1000000000

Languages spoken : Vietnamese,English.

Mobile : sony C2305

dell : i3-Ram 3GB- HDD 250GB .