Class MailHelper
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
Returns
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
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