C# Class NSoft.NFramework.Networks.MailSender

SmtpClientMailMessage를 이용한 메일 전송용 Utility Class
Mostra file Open project: debop/NFramework

Public Methods

Method Description
BuildAttachments ( this message ) : void

첨부파일 정보를 메일 본문에 추가한다.

BuildAttachments ( this message, Stream>.IDictionary files ) : void

첨부파일 정보를 메일 본문에 추가한다.

BuildHtmlMessageBody ( this message, Uri uri, Encoding bodyEncoding = null ) : void

MailMessage 의 본문을 지정된 Uri.AbsoluteUri의 컨텐츠로 설정한다.

SendMessage ( string host, MailMessage message ) : void

Mail 보내기

SendMessage ( string host, int port, MailMessage message ) : void

Mail 보내기

Method Details

BuildAttachments() public static method

첨부파일 정보를 메일 본문에 추가한다.
public static BuildAttachments ( this message ) : void
message this Mail message
return void

BuildAttachments() public static method

첨부파일 정보를 메일 본문에 추가한다.
public static BuildAttachments ( this message, Stream>.IDictionary files ) : void
message this
files Stream>.IDictionary 파일명, FileStream 의 Dictionary
return void

BuildHtmlMessageBody() public static method

MailMessage 의 본문을 지정된 Uri.AbsoluteUri의 컨텐츠로 설정한다.
public static BuildHtmlMessageBody ( this message, Uri uri, Encoding bodyEncoding = null ) : void
message this 메일 메시지 인스턴스
uri System.Uri 본문으로 설정할 내용이 있는
bodyEncoding System.Text.Encoding 본문의 인코딩 방식
return void

SendMessage() public static method

Mail 보내기
public static SendMessage ( string host, MailMessage message ) : void
host string SMTP Host address.
message System.Net.Mail.MailMessage mail message
return void

SendMessage() public static method

Mail 보내기
public static SendMessage ( string host, int port, MailMessage message ) : void
host string SMTP Host address.
port int SMTP port
message System.Net.Mail.MailMessage mail message
return void