C# 클래스 Foundation.Server.Infrastructure.Mailers.Mailer

Class for sending Razor Email
파일 보기 프로젝트 열기: NVentimiglia/Unity3d-Foundation

보호된 프로퍼티들

프로퍼티 타입 설명
Client System.Net.Mail.SmtpClient
Context System.Web.Mvc.ControllerContext

공개 메소드들

메소드 설명
SendAsync ( string viewPath, object model, string subject, System.Net.Mail.MailAddress recipients ) : System.Threading.Tasks.Task

Sends The Email !

SendAsync ( string viewPath, object model, string subject, System.Net.Mail.MailAddress replyTo, System.Net.Mail.MailAddress recipients ) : System.Threading.Tasks.Task

Sends The Email !

ToHtml ( string viewPath, ViewDataDictionary viewData ) : string

Generates HTML Body

ToHtml ( string viewPath, object model ) : string

Generates HTML Body

보호된 메소드들

메소드 설명
RaiseError ( Exception ex ) : void

비공개 메소드들

메소드 설명
Mailer ( ) : System

메소드 상세

RaiseError() 보호된 메소드

protected RaiseError ( Exception ex ) : void
ex System.Exception
리턴 void

SendAsync() 공개 메소드

Sends The Email !
public SendAsync ( string viewPath, object model, string subject, System.Net.Mail.MailAddress recipients ) : System.Threading.Tasks.Task
viewPath string Virtual Path to View : ~\Views\Mailer\Welcome
model object object
subject string Title
recipients System.Net.Mail.MailAddress
리턴 System.Threading.Tasks.Task

SendAsync() 공개 메소드

Sends The Email !
public SendAsync ( string viewPath, object model, string subject, System.Net.Mail.MailAddress replyTo, System.Net.Mail.MailAddress recipients ) : System.Threading.Tasks.Task
viewPath string Virtual Path to View : ~\Views\Mailer\Welcome
model object object
subject string Title
replyTo System.Net.Mail.MailAddress
recipients System.Net.Mail.MailAddress
리턴 System.Threading.Tasks.Task

ToHtml() 공개 메소드

Generates HTML Body
public ToHtml ( string viewPath, ViewDataDictionary viewData ) : string
viewPath string Virtual Path to View : ~\Views\Mailer\Welcome
viewData ViewDataDictionary object
리턴 string

ToHtml() 공개 메소드

Generates HTML Body
public ToHtml ( string viewPath, object model ) : string
viewPath string Virtual Path to View : ~\Views\Mailer\Welcome
model object object
리턴 string

프로퍼티 상세

Client 보호되어 있는 프로퍼티

protected SmtpClient,System.Net.Mail Client
리턴 System.Net.Mail.SmtpClient

Context 보호되어 있는 프로퍼티

protected ControllerContext,System.Web.Mvc Context
리턴 System.Web.Mvc.ControllerContext