PowerTCP Mail for .NET
BitEncoding Property




Gets the bit encoding of the message (SevenBit, EightBit, or Binary only).
Syntax
Public ReadOnly Property BitEncoding As TransferEncoding
Dim instance As MailMessage
Dim value As TransferEncoding
 
value = instance.BitEncoding
public TransferEncoding BitEncoding {get;}
public: __property TransferEncoding get_BitEncoding();
public:
property TransferEncoding BitEncoding {
   TransferEncoding get();
}
Remarks

Mail messages are usually encoded as 7bit, to be compatible with any mail server and transport (the original SMTP specification required 7bit processing). ESMTP, however, provided a mechanism where a server can advertise binary and 8bit support (RFC 3030 supports BINARY data and RFC 6152 supports 8BIT data). BINARY data does not comply with RFC 822 line-length restrictions, whereas 8BIT data does. So an image file would be considered BINARY, but a UTF8 encoding that observes line lengths would be considered 8BIT.

The value of this enumeration is limited to TransferEncoding.SevenBit, TransferEncoding.EightBit and TransferEncoding.Binary. If any Part uses TransferEncoding.Binary, then this is returned. Otherwise, if an Part uses TransferEncoding.EightBit, then this is returned. Otherwise, TransferEncoding.SevenBit is returned.

Users should use BINARY and 8BIT encoding with caution, as a downstream server might not support it, causing the message to be rejected.

See Also

Reference

MailMessage Class
MailMessage Members


PowerTCP Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic