C# Class RazorMail.RazorMailMessage

Represents a razor e-mail message that can be sent using a concrete implementation of the RazorMail.IRazorMailSender interface.
Inheritance: IDisposable
显示文件 Open project: wduffy/RazorMail Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
RazorMailMessage ( string subject ) : System

Initialises an empty instance of the RazorMail.RazorMailmessage class.

RazorMailMessage ( string subject, Assembly assembly ) : System

Initialises an empty instance of the RazorMail.RazorMailmessage class.

Protected Methods

Method Description
CreateAlternateViews ( IParser parser ) : IEnumerable
EnsureValues ( ) : void
RenderTemplates ( ) : string

Renders the Razor templates and returns the result as a System.String.

Private Methods

Method Description
GetMailMessage ( IParser parser ) : MailMessage
RazorMailMessage ( string subject, Assembly assembly, IFileReader fileReader ) : System

Method Details

CreateAlternateViews() protected method

protected CreateAlternateViews ( IParser parser ) : IEnumerable
parser IParser
return IEnumerable

Dispose() public method

public Dispose ( ) : void
return void

EnsureValues() protected method

protected EnsureValues ( ) : void
return void

RazorMailMessage() public method

Initialises an empty instance of the RazorMail.RazorMailmessage class.
public RazorMailMessage ( string subject ) : System
subject string A System.String that contains the subject text.
return System

RazorMailMessage() public method

Initialises an empty instance of the RazorMail.RazorMailmessage class.
public RazorMailMessage ( string subject, Assembly assembly ) : System
subject string A System.String that contains the subject text.
assembly System.Reflection.Assembly A reference to the System.Reflection.Assembly that contains embedded resources used within this RazorMailMessage's template
return System

RenderTemplates() protected method

Renders the Razor templates and returns the result as a System.String.
protected RenderTemplates ( ) : string
return string