ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

¥u­n¥|¦æÅý§AªºC#µo°eEmail¨Ï¥ÎGmail

¥u­n¥|¦æÅý§AªºC#µo°eEmail¨Ï¥ÎGmail

//«Ø¥ß SmtpClient ª«¥ó ¨Ã³]©w Gmailªºsmtp¥D¾÷¤ÎPort
System.Net.Mail.SmtpClient MySmtp = new System.Net.Mail.SmtpClient("smtp.gmail.com", 587);

//³]©w§Aªº±b¸¹±K½X
MySmtp.Credentials = new System.Net.NetworkCredential("YourID", "YourPassword");

//Gmial ªº smtp ¨Ï¥Î SSL
MySmtp.EnableSsl = true;

//µo°eEmail
MySmtp.Send("µo°eªÌ<[email protected]>", "¦¬¥óªÌ<[email protected]>", "C# Gmailµo«H´ú¸Õ", "¤å¥ó¤º®e");

        ÀR«ä¦Û¦b : ¡i®É¶¡¦pÆp¥Û¡j®É¶¡¹ï¤@­Ó¦³´¼¼zªº¤H¦Ó¨¥¡A´N¦pÆp¥Û¯ë¬Ã¶Q¡F¦ý¹ï·M¤H¨Ó»¡¡A«o¹³¬O¤@§âªd¤g¡A¤@ÂI»ù­È¤]¨S¦³¡C
ªð¦^¦Cªí ¤W¤@¥DÃD