• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class MimeWriter

Writes MIME messages and entities to a stream in RFC 5322/2045-compliant format.

Inheritance
object
MimeWriter
Implements
IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Mail.Rfc.Mime
Assembly: DRIT.Mail.dll
Syntax
public sealed class MimeWriter : IDisposable

Constructors

View Source

MimeWriter(Stream)

Initializes a new instance of the MimeWriter class.

Declaration
public MimeWriter(Stream stream)
Parameters
Type Name Description
Stream stream

The stream used to read or write the data.

View Source

MimeWriter(Stream, bool)

Initializes a new instance of the MimeWriter class.

Declaration
public MimeWriter(Stream stream, bool leaveOpen)
Parameters
Type Name Description
Stream stream

The stream used to read or write the data.

bool leaveOpen

The leave open used by the operation.

Methods

View Source

Dispose()

Processes the dispose data.

Declaration
public void Dispose()
View Source

WriteEntity(MimeEntity)

Writes a single MimeEntity to the stream.

Declaration
public void WriteEntity(MimeEntity entity)
Parameters
Type Name Description
MimeEntity entity

Specifies the entity value.

View Source

WriteMessage(MimeMessage)

Writes a complete MimeMessage to the stream.

Declaration
public void WriteMessage(MimeMessage message)
Parameters
Type Name Description
MimeMessage message

The message to process.

Implements

IDisposable
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX