using System.Net.Mail; SmtpClient client = new SmtpClient(); client.Host = "SMTP서버주소"; client.Timeout = 5000; client.DeliveryMethod = SmtpDeliveryMethod.Network; client.UseDefaultCredentials = false; client.Credentials = new System.Net.NetworkCredential("인증아이디", "비번"); MailMessage MM = new MailMessage("FROM", "TO", "제목", "내용"); MM.BodyEncoding = UTF8Encoding.UTF8; MM.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure; client.Send(MM); MM.Dispose();
- [2015/09/30] 제로보드XE 메일 발송 시 SMTP 서버 설정하는 방법 (1992)
- [2015/08/18] 웹 사이트 모니터링 프로그램 C# (2529)
- [2014/10/14] C# 엑셀데이터 읽어서 디비에 저장 (4826)
- [2014/10/14] C# 소수점 지정 (1808)
- [2013/12/23] appSettings 값 추가하기 , 읽어오기 , 값 존재 유무 체크 (5146)
우왕굿 좋아요 이거