Show / Hide Table of Contents

Class MailHelper

Inheritance
object
MailHelper
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.Util
Assembly: SoCore.dll
Syntax
public static class MailHelper

Methods

ExceptionIsAuthFail(Exception, bool)

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
bool strict
Returns
Type Description
bool

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, bool)

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

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