C# 클래스 Framework.Core.Utilities.Email.MailTemplate

Template email class.
파일 보기 프로젝트 열기: coreframework/Core-Framework 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GetFullTemplatePath String

공개 메소드들

메소드 설명
AddAttachment ( String path ) : void

Add attachment.

AppendParam ( String key, String value ) : void

Appends param with its value to the email.

AppendParam ( String key, String value, bool encode ) : void

Apends param to the email.

MailTemplate ( String bodyTemplate ) : System

Initializes a new instance of the MailTemplate class.

MailTemplate ( String templateDirectory, String bodyTemplate ) : System

Initializes a new instance of the MailTemplate class.

Send ( ) : bool

Send email.

Send ( String smtpHost, String user, String password ) : bool

Send email.

SendMails ( ) : bool

Sends mails to list of recipients specified in MailAddressCollection.

보호된 메소드들

메소드 설명
ReadTemplates ( String bodyTemplateFile ) : void

Initialize new instance of MailTemplate.

비공개 메소드들

메소드 설명
GetFullTemplatePath ( String path ) : String

Gets the full template path.

메소드 상세

AddAttachment() 공개 메소드

Add attachment.
public AddAttachment ( String path ) : void
path String Path to the file.
리턴 void

AppendParam() 공개 메소드

Appends param with its value to the email.
public AppendParam ( String key, String value ) : void
key String Param Key
value String Param value.
리턴 void

AppendParam() 공개 메소드

Apends param to the email.
public AppendParam ( String key, String value, bool encode ) : void
key String Param key.
value String Param value.
encode bool If true. the param value will be encided.
리턴 void

MailTemplate() 공개 메소드

Initializes a new instance of the MailTemplate class.
public MailTemplate ( String bodyTemplate ) : System
bodyTemplate String The body template.
리턴 System

MailTemplate() 공개 메소드

Initializes a new instance of the MailTemplate class.
public MailTemplate ( String templateDirectory, String bodyTemplate ) : System
templateDirectory String The template directory.
bodyTemplate String The body template.
리턴 System

ReadTemplates() 보호된 메소드

Initialize new instance of MailTemplate.
protected ReadTemplates ( String bodyTemplateFile ) : void
bodyTemplateFile String Name of the body template.
리턴 void

Send() 공개 메소드

Send email.
public Send ( ) : bool
리턴 bool

Send() 공개 메소드

Send email.
public Send ( String smtpHost, String user, String password ) : bool
smtpHost String The SMTP host.
user String The SMTP user.
password String The SMTP password.
리턴 bool

SendMails() 공개 메소드

Sends mails to list of recipients specified in MailAddressCollection.
public SendMails ( ) : bool
리턴 bool