MailBee.NET Objects 4.0

NewAttachmentOptions Enumeration

Defines the available flags affecting how a new Attachment object will be created by Add method and its overloads which accept options parameter.

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

public enum NewAttachmentOptions

Members

Member Name Description Value
None No additional options. 0
ReplaceIfExists If the attachment with such name already exists in collection, it will be replaced with the newly created one. Otherwise, the newly created attachment will be appended to collection. 1
Inline Forcibly add the attachment as inline object. 2
NoDefaultHeaders Add only custom headers (specified by customHeaders parameter of Add) method) and do not produce any default headers. 4
PathIsUri The path to the attachment is a URI (URL) rather than filesystem path. Example is http://www.domain.com/picture.gif. If this flag is not set, filesystem path will be assumed (e.g. C:\Inetpub\wwwroot\picture.gif). This flag has no effect for those overloads of Add method which add the attachment from memory rather than from a file. 8

Requirements

Namespace: MailBee.Mime

Assembly: MailBee.NET (in MailBee.NET.dll)

See Also

MailBee.Mime Namespace