MailBee.Mime Namespace
MailBee.Mime namespace provides classes and enumerations which can be used by your applications and by MailBee components (such as SmtpMail.Smtp and Pop3Mail.Pop3) for the following major tasks:
  • Automatically parse mail messages in MIME format into a set of easy-to-use properties and collections
  • Prepare mail messages for display in different containers such as browser or textbox control (including coloring quotations, highlighting links, processing embedded and external images, and more)
  • Compose new messages and automatically convert them into MIME format
  • Perform mail merge
  • Modify existing messages (including forwarding an existing message as attachment of a new message)
  • Load and save mail messages and individual parts from/into disk files, streams, strings, arrays
  • With the help of MailBee.Security.Smime class (licensed separately), MailBee.NET can also encrypt/decrypt e-mails, verify signatures, etc
MIME format (RFC2822) is the standard format for storing and transmitting mail messages in the Internet. Also, mail messages saved in this format (.EML files) are understood by most mail reader programs (including Microsoft Outlook Express).
Classes
  ClassDescription
Public classCode exampleAttachment
Provides properties and methods for constructing or examining a single attachment to the mail message.
Public classCode exampleAttachmentCollection
Provides properties and methods for managing and examining the collection of Attachment objects.
Public classCode exampleEmailAddress
Provides properties and methods used to parse, examine and construct a single e-mail address.
Public classCode exampleEmailAddressCollection
Provides properties and methods for managing and examining the collection of the EmailAddress objects.
Public classCode exampleHeader
Provides properties for examining or setting the name or the value of a single field of the headers section of a MIME part.
Public classCode exampleHeaderCollection
Represents a collection of all the headers of a mail message or a MIME part.
Public classCode exampleMailMerge
Provides properties and methods for creating customized messages based on a template.
Public classCode exampleMailMessage
Provides properties and methods for constructing and examining a single e-mail message.
Public classCode exampleMailMessageCollection
Provides properties and methods for managing and examining the collection of MailMessage objects.
Public classCode exampleMessageBuilderConfig
Provides properties and methods which affect how the mail message is being built from the MailMessage object properties and collections into the message raw data (in MIME format).
Public classCode exampleMessageParserConfig
Provides properties and methods which affect how the mail message is being parsed from the raw data (MIME source) into the MailMessage object properties and collections.
Public classCode exampleMimePart
Represents a MIME part of the message.
Public classCode exampleMimePartCollection
Provides properties and methods for examining the collection of MimePart objects.
Public classStringConversionConfig
Provides properties the developer can use to affect how the values of string properties of MailMessage and dependent objects should be charset-converted when being returned to the application.
Public classCode exampleTextBodyPart
Represents a text body of the message.
Public classCode exampleTextBodyPartCollection
Provides properties and methods for managing and examining the collection of TextBodyPart objects.
Public classCode exampleTimeStamp
Provides properties and methods for examining a time stamp representing a moment when the message was received by a mail gateway or a mail server.
Public classCode exampleTimeStampCollection
Provides properties and methods for examining the collection of TimeStamp objects.
Delegates
  DelegateDescription
Public delegateReplaceUriWithCidHandler
Defines the signature of a method supplied by the application in order to decide whether a particular URI in the HTML being imported must be replaced with a CID and the corresponding resource be attached to the message.
Enumerations
  EnumerationDescription
Public enumerationAddressDelimeterChar
Defines the available characters for delimiting e-mail addresses when building an e-mail address string.
Public enumerationAHRefTagAttributes
Defines the available attributes of <A HREF> tags contained in HTML message body which can be affected by cleanup process during parsing the message.
Public enumerationCharsetMetaTagProcessing
Defines the available modes which affect processing of META tags during parsing HTML body of the message.
Public enumerationHeaderEncodingOptions
Defines the available options which affect how message headers are encoded with mail transfer encodings such as Base64 or Quoted-Printable.
Public enumerationHtmlMessageAutoSaving
Defines the available modes for automatic saving of the HTML body or related files of the message into WorkingFolder location during parsing the message.
Public enumerationHtmlToPlainAutoConvert
Defines the available modes which specify when HTML body of a message should automatically be converted into plain text during parsing of this message.
Public enumerationHtmlToPlainConvertOptions
Defines the available flags which affect how HTML body of a message is converted into plain text.
Public enumerationCode exampleHtmlToSimpleHtmlAutoConvert
Defines the available modes which specify if HTML body of a message should be converted into simple HTML.
Public enumerationHtmlToSimpleHtmlConvertOptions
Defines the available flags which affect how HTML body of a message should be converted into simple HTML.
Public enumerationImportBodyOptions
Defines the available flags for importing the body of the mail message from a file or URI via LoadBodyText(String, MessageBodyType, Encoding, ImportBodyOptions) method.
Public enumerationImportRelatedFilesOptions
Defines the available flags which affect how files related to the HTML body of the mail message are attached to the message by ImportRelatedFiles(ImportRelatedFilesOptions) method.
Public enumerationMailMergeTargets
Defines mail message elements where patterns should be searched and replaced with actual values during mail merge operation.
Public enumerationMailPriority
Defines the available values for MailMessage.Priority property.
Public enumerationMailSensitivity
Defines the available values for MailMessage.Sensitivity property.
Public enumerationMailTransferEncoding
Defines the available values for the properties specifying mail transfer encoding for text parts or attachments of the message.
Public enumerationMessageBodyType
Defines the available types of the mail message body being loaded with LoadBodyText(String, MessageBodyType) method.
Public enumerationMessageElements
Defines a set of flags which specify message elements to be cleared by MailMessage.Clear method call.
Public enumerationMessageFolderBehavior
Defines the available modes of maintaining the unique message folder associated with the mail message.
Public enumerationMimePartType
Defines the available categories of MIME parts.
Public enumerationNewAttachmentOptions
Defines the available flags affecting how a new Attachment object will be created by Add(String, String, String, String, HeaderCollection, NewAttachmentOptions, MailTransferEncoding) method and its overloads which accept options parameter.
Public enumerationPlainToHtmlAutoConvert
Defines modes which specify the condition which triggers automatic conversion of the plain-text body into HTML during parsing the message.
Public enumerationPlainToHtmlConvertOptions
Defines the available flags affecting conversion of the plain-text body into HTML during parsing the message.
Public enumerationRelatedAlternativeMimePartNestingOrder
Defines the available schemes how MIME parts are nested into each other when building an e-mail message.
Public enumerationStringConversionMode
Defines the modes which specify if (and how) the values of string properties of MailMessage and dependent objects should be charset-converted when being returned to the application.
Public enumerationTnefExtractionOptions
Defines the available flags affecting which items to extract from a TNEF container (winmail.dat).
Public enumerationVirtualMappingType
Defines the available modes which specify how the virtual paths should be generated by GetHtmlAndSaveRelatedFiles(String, VirtualMappingType, MessageFolderBehavior) method for inline attachments referenced in HTML body.