BuildMaster SDK Reference
Version:

GeneratePlainTextBodyFromHtml(string htmlEmailBody) Method

Generates the plain text from HTML.

Syntax

protected virtual string GeneratePlainTextBodyFromHtml(string htmlEmailBody)

Parameters

htmlEmailBody
Type: string

The HTML email body.

Remarks

This method is used by SendEmail(string subject, string htmlEmailBody) to generate a plaintext message from html. This is very simplistic; it uses a regex to strip tags, replaces BR with linebreaks and de-encodes nbsp, lt, gt, and amp entities. It's fine for simple html, but if you need good text formating, use a different overload