ªð¦^¦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¥Í©R¦b©I§l¶¡¡j¦òªû»¡¡G¡u¥Í©R¦b©I§l¶¡¡C¡v¤HµLªkºÞ¦í¦Û¤vªº¥Í©R¡A§óµLªk¾×¦í¦º´Á¡AÅý¦Û¤v¥Ã¦í¤H¶¡¡C¬JµM¥Í©R¥h¨Ó³o»òµL±`¡A§Ú­Ì§óÀ³¸Ó¦n¦n¦a·R±¤¥¦¡B§Q¥Î¥¦¡B¥R¹ê¥¦¡AÅý³oµL±`¡BÄ_¶Qªº¥Í©R¡A´²µo¥¦¯uµ½¬üªº¥ú½÷¡A¬M·Ó¥X¥Í©R¯u¥¿ªº»ù­È¡C
ªð¦^¦Cªí ¤W¤@¥DÃD