BElajar Bom2an dengan Gmail Nyok..:D..

ayo2. belajar yak,, nih khusus newbi aja yak..
nih buat nya pake c#...
ane kasih penggalan code nya...


using System.Net.Mail;


void Bom()
{
MailMessage mail = new MailMessage();
SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com");

mail.From = new MailAddress("your_email_address@gmail.com");
mail.To.Add("to_address@mfc.ae");
mail.Subject = "Test Mail";
mail.Body = "This is for testing SMTP mail from GMAIL";

SmtpServer.Port = 587;
SmtpServer.Credentials = new System.Net.NetworkCredential("username", "password");
SmtpServer.EnableSsl = true;

SmtpServer.Send(mail);
MessageBox.Show("mail Send");

}
Selamat Ber Explore ria...
nih hasilnya...


Related Articles






IP

Followers

 

Copyright © 2009 by ::EXPLORE::