Table of Contents

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

content string
element string

Returns

List<string>

GetElements(string, string, bool)

public static List<string> GetElements(string content, string element, bool requireAttribute)

Parameters

content string
element string
requireAttribute bool

Returns

List<string>

GetFirstIndexAfterBodyStart(string)

Gets first index after body html element in string content

public static int GetFirstIndexAfterBodyStart(string content)

Parameters

content string

String 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 Message

The message.

isPreview bool

Value 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 string

The content.

message Message

The message.

isPreview bool

Value indicating whether preprocessing a preview or not.

Returns

string
To top