C# Class Alpinely.TownCrier.MailMessageWrapper

Datei anzeigen Open project: endeavour/town-crier Class Usage Examples

Protected Properties

Property Type Description
ContainedMailMessage System.Net.Mail.MailMessage
HtmlBody string
IsSubjectSet bool
PlainTextBody string
TemplateParser ITemplateParser
TokenValues string>.IDictionary

Public Methods

Method Description
Create ( ) : MailMessage
MailMessageWrapper ( ITemplateParser templateParser ) : System
WithHtmlBody ( string bodyTemplate ) : MailMessageWrapper
WithHtmlBodyFromFile ( string filename ) : MailMessageWrapper
WithMarkdownBody ( string bodyTemplate ) : MailMessageWrapper
WithMarkdownBodyFromFile ( string filename ) : MailMessageWrapper
WithPlainTextBody ( string bodyTemplate ) : MailMessageWrapper
WithPlainTextBodyFromFile ( string filename ) : MailMessageWrapper
WithSubject ( string subjectTemplate ) : MailMessageWrapper

Protected Methods

Method Description
SetBodyFromHtmlText ( ) : void
SetBodyFromPlainText ( ) : void

Method Details

Create() public method

public Create ( ) : MailMessage
return System.Net.Mail.MailMessage

MailMessageWrapper() public method

public MailMessageWrapper ( ITemplateParser templateParser ) : System
templateParser ITemplateParser
return System

SetBodyFromHtmlText() protected method

protected SetBodyFromHtmlText ( ) : void
return void

SetBodyFromPlainText() protected method

protected SetBodyFromPlainText ( ) : void
return void

WithHtmlBody() public method

public WithHtmlBody ( string bodyTemplate ) : MailMessageWrapper
bodyTemplate string
return MailMessageWrapper

WithHtmlBodyFromFile() public method

public WithHtmlBodyFromFile ( string filename ) : MailMessageWrapper
filename string
return MailMessageWrapper

WithMarkdownBody() public method

public WithMarkdownBody ( string bodyTemplate ) : MailMessageWrapper
bodyTemplate string
return MailMessageWrapper

WithMarkdownBodyFromFile() public method

public WithMarkdownBodyFromFile ( string filename ) : MailMessageWrapper
filename string
return MailMessageWrapper

WithPlainTextBody() public method

public WithPlainTextBody ( string bodyTemplate ) : MailMessageWrapper
bodyTemplate string
return MailMessageWrapper

WithPlainTextBodyFromFile() public method

public WithPlainTextBodyFromFile ( string filename ) : MailMessageWrapper
filename string
return MailMessageWrapper

WithSubject() public method

public WithSubject ( string subjectTemplate ) : MailMessageWrapper
subjectTemplate string
return MailMessageWrapper

Property Details

ContainedMailMessage protected_oe property

protected MailMessage,System.Net.Mail ContainedMailMessage
return System.Net.Mail.MailMessage

HtmlBody protected_oe property

protected string HtmlBody
return string

IsSubjectSet protected_oe property

protected bool IsSubjectSet
return bool

PlainTextBody protected_oe property

protected string PlainTextBody
return string

TemplateParser protected_oe property

protected ITemplateParser TemplateParser
return ITemplateParser

TokenValues protected_oe property

protected IDictionary TokenValues
return string>.IDictionary