SocketTools .NET Edition

MailMessage.MimeAttachment Enumeration

Specifies the file attachment options supported by the MailMessage class.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

[Visual Basic]
<Flags>
Public Enum MailMessage.MimeAttachment
[C#]
[Flags]
public enum MailMessage.MimeAttachment

Remarks

The attachAlternative and attachInline values can be combined with one of the attachment options using a bitwise OR operator.

Members

Member Name Description Value
attachDefault The file attachment encoding is based on the file content type. Text files are not encoded, and binary files are encoded using the standard base64 encoding algorithm. This is the default option for file attachments. 0
attachBase64 The file attachment is always encoded using the standard base64 algorithm, even if the attached file is a plain text file. 1
attachUucode The file attachment is always encoded using the uuencode algorithm, even if the attached file is a plain text file. 2
attachQuoted The file attachment is always encoded using the quoted-printable algorithm, even if the attached file is a plain text file. 3
attachAlternative The attached data is an alternative format for the contents of the message. This can only be used with textual data. 65536
attachInline The attached data will be displayed inline with the contents of the message. This is typically used with images that are to be displayed along with the message text. 131072

Requirements

Namespace: SocketTools

Assembly: SocketTools.MailMessage (in SocketTools.MailMessage.dll)

See Also

SocketTools Namespace