Notice
Recent Posts
Recent Comments
목록메일보내기 (1)
분노의 챔질
반응형
C# 간단한 메일보내기
MailMessage message = new MailMessage(); string mailFrom = "보내는양반메일주소"; MailAddress from = new MailAddress(mailFrom); message.From = from; message.Subject = "제목"; message.IsBodyHtml = true; message.Body = "내용"; message.To.Add("받는양반메일주소"); Attachment data = new Attachment(@"첨부파일명"); message.Attachments.Add(data); var objMail = new SmtpClient("메일서버주소", 25); objMail.UseDefaultCredentials = false; o..
Programming/C#
2010. 2. 25. 10:48
반응형