Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

MailSettings Class

Namespace: Rebex.Mail
Assembly: Rebex.Mail.dll (version 7.0.9119)

Specifies various MailMessage settings.

Syntax
public class MailSettings
Inheritance
Object
MailSettings
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()

Constructors

Name Description
MailSettings()

Creates an instance of MailSettings.

Properties

Name Description
AllowOversizedLines

Allow parsing of oversized lines. Using this option is discouraged.

AlwaysWriteContentTransferEncoding

Always write the content-transfer-encoding, even if it has default value of "7bit"

DisableEncryptionKeyPreference

Do not include encryption key preference attribute in signed message attributes.

DisableSinglePartHtmlWorkaround

Disable a workaround for broken mail clients such as Mac mail that don't correctly parse HTML-only messages. By default, MailMessage class constructs a single-part multipart/alternative structure to solve this. This property turns off this behavior.

DisableSMimeCapabilitiesAttribute

Do not include S/MIME options attribute in signed message attributes.

DoNotAddDateIfNoSubjectAndFrom

Do not automatically add a date header if 'date', 'subject' or 'from' headers are missing from a top-level or embedded message.

DoNotCloseStreamAfterLoad

Keep the input stream open when Load(Stream) method is done.

DoNotParseMimeTree

Ignore the MIME tree and parse the message as a single-level entity.

DoNotQuoteProblematicSequences

Disable encoding of leading 'F', '.' and '-' character in body parts using quoted-printable content transfer encoding. These leading characters used to cause problems to legacy mail transfer agents, so quoted-printable-encoding them was used as a workaround that doesn't cause any problems to properly-implemented mail agents.

DoNotTrimHeaderValues

Instructs the MIME header parser not to trim MIME headers while parsing them.

IgnoreInvalidTnefMessages

Ignore invalid TNEF (winmail.dat) attachments when parsing mail message.

IgnoreMsgTransportHeaders

Ignore TransportMessageHeaders field when loading .msg file. If set to true, some fields are taken directly from the .msg structure instead of the TransportMessageHeaders field. The affected fields are: Sender, From, To, CC, Bcc, Subject, Date, MessageId. Any MIME headers stored in TransportMessageHeaders field are not loaded either.

IgnoreUnparsableHeaders

Ignore unparsable headers when parsing mail message.

IgnoreUnparsableSignatures

Ignore unparsable S/MIME signature entities when parsing mail message.

LoadMsgProperties

Load Outlook MSG properties into custom MIME headers. All these MIME headers start with X-Outlook- string.

OnlyParseHeaders

Only parse message headers and ignore the body.

PreferExplicitBody

Prefer BodyText and BodyHtml to be taken from its original .msg message fields. Default is false, which means BodyText and BodyHtml are taken from BodyRtf if possible (if embedded).

ProcessAllHeaders

Parse and reencode all headers, even when not needed or modified.

RtfMode

The mode to process RTF in mails.

SkipCertificateUsageCheck

Skip certificate usage check.

SkipSenderCheck

Skip sender check.

SkipTnefMessageProcessing

Skip TNEF (winmail.dat) attachment processing. If specified, the 'winmail.dat' attachment is not processed at all.

TreatAdditionalMixedTextPartsAsView

Treat additional 'text/*' sub-entities of 'multipart/mixed' as alternative view unless thair Content-Disposition indicates otehrwise.

TreatMixedInlineAsAttachment

Treat sub-entities of 'multipart/mixed' as attachments even if their Content-Disposition is 'inline'.

UseDefaultCharsetForHeaders

/// Use DefaultCharset for parsing non-ASCII headers (instead of Default).

Methods

Name Description
Clone()

Creates a new object that is a shallow copy of the current instance.

In This Article
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies