Class MessagePreprocessor
- Namespace
- Dynamicweb.Mailing
- Assembly
- Dynamicweb.Core.dll
public class MessagePreprocessor
- Inheritance
-
MessagePreprocessor
- Inherited Members
Methods
GetElements(string, string)
public static List<string> GetElements(string content, string element)
Parameters
Returns
GetElements(string, string, bool)
public static List<string> GetElements(string content, string element, bool requireAttribute)
Parameters
Returns
GetFirstIndexAfterBodyStart(string)
Gets first index after body html element in string content
public static int GetFirstIndexAfterBodyStart(string content)
Parameters
content
stringString content
Returns
- int
Integer value representing position
Preprocess(Message, bool)
Preprocesses the specified Message. Preprocessing includes link manipulation and path correction.
public void Preprocess(Message message, bool isPreview)
Parameters
message
MessageThe message.
isPreview
boolValue indicating whether preprocessing a preview or not.
PreprocessContent(string, Message, bool)
Preprocesses the content. Preprocessing includes link manipulation and path correction.
public string PreprocessContent(string content, Message message, bool isPreview)
Parameters
content
stringThe content.
message
MessageThe message.
isPreview
boolValue indicating whether preprocessing a preview or not.