Show / Hide Table of Contents

Class MailHelper

Inheritance
Object
MailHelper
Namespace: SuperOffice.Util
Assembly: SoCore.dll
Syntax
public static class MailHelper : Object

Methods

ExceptionIsAuthFail(Exception, Boolean)

Checks if an exception is considered an authentication exception.

Declaration
public static bool ExceptionIsAuthFail(Exception ex, bool strict = false)
Parameters
Type Name Description
Exception ex
Boolean strict
Returns
Type Description
Boolean

GetBodyContent(String)

Strip everything but what is inside If the body tags are not found, everything is returned

Declaration
public static string GetBodyContent(string text)
Parameters
Type Name Description
String text
Returns
Type Description
String

GetCleanHtmlBody(String, Boolean)

Strip everything but what is inside Strip scripts Optionally remove references to external images

Declaration
public static string GetCleanHtmlBody(string text, bool appendCustomStyle)
Parameters
Type Name Description
String text
Boolean appendCustomStyle
Returns
Type Description
String
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top