Attachment

Attachment class

Represents an e-mail attachment.

The Attachment type exposes the following members:

Constructors

NameDescription
Attachment(file_name)Initializes a new instance of the Attachment class
Attachment(file_name, media_type)Initializes a new instance of the Attachment class
Attachment(file_name, content_type)Initializes a new instance of the Attachment class
Attachment(content_stream, name)Initializes a new instance of the Attachment class
Attachment(content_stream, name, media_type)Initializes a new instance of the Attachment class
Attachment(content_stream, content_type)Initializes a new instance of the Attachment class

Properties

NameDescription
content_streamGets or sets the content stream.
content_idGets or sets the content id.
headersGets headers collection of attachment.
content_typeGets or sets the type of the content.
transfer_encodingGets or sets the transfer encoding.
is_tnefGets a value indicating whether the attachment is TNEF formatted message.
is_embedded_messageGets a value indicating whether the attachment is an embedded message.
nameGets or sets an attachment name
name_encodingGets or sets an encoding of attachment name
content_dispositionGets Content-Disposition header
is_uriGets a value indicating whether attachment is URI-attachment.
preferred_text_encodingGets or sets a preferred text encoding

Methods

NameDescription
save(stream)
save(file_name)
create_attachment_from_string(content, name)
create_attachment_from_string(content, name, content_encoding, media_type)
create_attachment_from_string(content, content_type)

See Also