Property | Type | Description | |
---|---|---|---|
BuildEmailBody | string | ||
DigestCCS | void | ||
System | |||
System | |||
GetContentAsGrid | string | ||
GetEmailAdressesFromUmbracoProperty | IEnumerable |
||
GetNextLogMailId | string | ||
GetTemplateNode | Node | ||
Initialize | void | ||
IsInlinerDisabled | bool | ||
Log | int | ||
ProcessHyperlinks | void | ||
ProcessImages | void | ||
ReplaceTags | string | ||
SaveAttachmentsAndGenerateStorageString | string |
Method | Description | |
---|---|---|
ClearLog ( int emailNodeId ) : void | ||
CreateUmbracoEmail ( int umbracoEmailNodeId, List |
Send a email based on the configuration of an Umbraco email node.
|
|
DownloadEmail ( int logmailID ) : void | ||
ReSendEmail ( int logmailID, string recipientEmail = null, bool includeCC = false, bool includeBCC = false ) : int |
Resend any email that has previously been sent and logged. The email to resend is based on the email log ID, so only emails present in the log table can be resent.
|
|
SendEmail ( ) : int |
Send the email. The email will also logged automtaically in this call (unless disabled from Umbraco)
|
|
SendUmbracoEmail ( int umbracoEmailNodeId ) : int |
Send a email based on the configuration of an Umbraco email node.
|
|
SendUmbracoEmail ( int umbracoEmailNodeId, List |
Send a email based on the configuration of an Umbraco email node.
|
|
SendUmbracoEmail ( int umbracoEmailNodeId, List |
Send a email based on the configuration of an Umbraco email node.
|
|
SendUmbracoEmail ( int umbracoEmailNodeId, List |
Send a email based on the configuration of an Umbraco email node. If any email adresses are specified in parameters from, replyto, to, cc or bcc, the email's Umbraco configuration is IGNORED and instead the provided paramter will be used. If any of the email parameters contains NULL, it will be skipped and the email's Umbraco settings will be used instead.
|
|
SendUmbracoTestEmail ( SendTestEmailRequest request ) : int |
Send a test email based on the settings of the request object. This email is sent exclusively to the specified recipient parameter (CC and BCC are ignored)
|
|
SendUmbracoTestEmail ( int umbracoEmailNodeId, IEnumerable |
Send a test email based on the configuration of an Umbraco email node. This email is sent exclusively to the specified recipient parameter (CC and BCC are ignored)
|
|
SetSmtpCredentials ( string username, string password ) : void |
Method | Description | |
---|---|---|
InlineCSS ( String CSS, HtmlAgilityPack.HtmlDocument &doc ) : void |
This method takes raw CSS style code and an HTML document as input and embeds all the specified CSS code in the document. It attempts to apply the styles on the HTML elements in a similar way as you would expect to find in a modern browser. Please take note that CSS3 is not supported and the usage of psuedo elements (:after, :hover, etc) should be avoided. This is because all modern email clients (outlook, gmail) only render basic CSS2 styling as well.
|
Method | Description | |
---|---|---|
BuildEmailBody ( Node nMail ) : string |
Loads the unparsed body text for the e-mail and returns it as a single (unparsed) string.
|
|
DigestCCS ( List |
||
Email ( List |
||
Email ( int umbracoEmailNodeId, List |
Create an email object, but load the basic configuration from an umbraco email node
|
|
GetContentAsGrid ( Node nMail ) : string | ||
GetEmailAdressesFromUmbracoProperty ( INode node, EnmUmbracoPropertyAlias alias, bool recursive = true ) : IEnumerable |
||
GetNextLogMailId ( ) : string |
Attempt to predict the next logID this e-mail will get. Note: This function is not 100% reliable as emails sent simultaniously may result in the email getting a different (higher) log ID.
|
|
GetTemplateNode ( Node nMail ) : Node | ||
Initialize ( List |
||
IsInlinerDisabled ( Node nMail ) : bool | ||
Log ( |
||
ProcessHyperlinks ( HtmlAgilityPack.HtmlDocument &doc, string mailID ) : void | ||
ProcessImages ( HtmlAgilityPack.HtmlDocument &doc ) : void | ||
ReplaceTags ( string input ) : string | ||
SaveAttachmentsAndGenerateStorageString ( ) : string |
public static ClearLog ( int emailNodeId ) : void | ||
emailNodeId | int | |
return | void |
public static CreateUmbracoEmail ( int umbracoEmailNodeId, List |
||
umbracoEmailNodeId | int | The ID of the configured Umbraco email node |
values | List |
List of tags render in the email |
attachments | IEnumerable |
The list of attachments that are sent with the email |
return |
public static DownloadEmail ( int logmailID ) : void | ||
logmailID | int | |
return | void |
protected static InlineCSS ( String CSS, HtmlAgilityPack.HtmlDocument &doc ) : void | ||
CSS | String | The raw CSS code to parse |
doc | HtmlAgilityPack.HtmlDocument | The document to apply the styling to |
return | void |
public static ReSendEmail ( int logmailID, string recipientEmail = null, bool includeCC = false, bool includeBCC = false ) : int | ||
logmailID | int | The email log ID |
recipientEmail | string | (optioneel) The alternative recipient of the email that will be resent. If left null or empty, the original recipient's emailaddress will be used |
includeCC | bool | Should the email also be sent to the original CC recipients? |
includeBCC | bool | Should the email also be sent to the original CC recipients? |
return | int |
public static SendUmbracoEmail ( int umbracoEmailNodeId ) : int | ||
umbracoEmailNodeId | int | The ID of the configured Umbraco email node |
return | int |
public static SendUmbracoEmail ( int umbracoEmailNodeId, List |
||
umbracoEmailNodeId | int | The ID of the configured Umbraco email node |
values | List |
List of tags render in the email |
return | int |
public static SendUmbracoEmail ( int umbracoEmailNodeId, List |
||
umbracoEmailNodeId | int | The ID of the configured Umbraco email node |
values | List |
List of tags render in the email |
attachments | IEnumerable |
The list of attachments that are sent with the email |
return | int |
public static SendUmbracoEmail ( int umbracoEmailNodeId, List |
||
umbracoEmailNodeId | int | The ID of the configured Umbraco email node |
values | List |
List of tags render in the email |
attachments | IEnumerable |
The list of attachments that are sent with the email |
from | System.Net.Mail.MailAddress | |
replyto | MailAddressCollection | |
to | MailAddressCollection | |
cc | MailAddressCollection | |
bcc | MailAddressCollection | |
return | int |
public static SendUmbracoTestEmail ( SendTestEmailRequest request ) : int | ||
request | PerplexMail.Models.SendTestEmailRequest | The object describing the test email to be sent |
return | int |
public static SendUmbracoTestEmail ( int umbracoEmailNodeId, IEnumerable |
||
umbracoEmailNodeId | int | The ID of the configured Umbraco email node |
recipients | IEnumerable |
The emailaddress to receive the test email |
values | List |
List of tags render in the email |
return | int |
public SetSmtpCredentials ( string username, string password ) : void | ||
username | string | |
password | string | |
return | void |