smtp library

Everything you need to send messages using the SMTP protocol.

With the SmtpClient you can connect to any SMTP service.

Classes

AttachmentInfo
Information about a file that is attached
BinaryMimeData
Represents binary mime data
BodyPart
A BODY or BODYSTRUCTURE information element
ContentDispositionHeader
Specifies the content disposition header of a mime part. Compare https://tools.ietf.org/html/rfc2183 for details.
ContentInfo
Provides high level information about content parts.
ContentTypeHeader
Eases reading content-type header values
Envelope
Contains the envelope information about a message.
Encapsulates a MIME header
MailAddress
An email address can consist of separate fields
MailConventions
Contains various mail specific conventions
MediaType
Describes the media type of a MIME message part
MessageBuilder
Simplifies creating mime messages for sending or storing.
MessageFlags
Contains common message flags
MessageSequence
Defines a list of message IDs.
MimeData
Abstracts textual or binary mime data
MimeMessage
A MIME message
MimePart
A MIME part In a simple case a MIME message only has one MIME part.
MimeThread
Abstract a mime message thread
PagedMessageSequence
A paginated list of message IDs
ParameterizedHeader
A parameter that may contain additional parameters
PartBuilder
Allows to configure a mime part
SequenceNode
A message sequence to handle nested IDs like in the IMAP THREAD extension.
SmtpClient
Low-level SMTP library for Dart
SmtpConnectionLostEvent
Event signalling a lost connection
SmtpEvent
Base SMTP event
SmtpResponse
Contains a response from the SMTP server
SmtpResponseLine
Contains a single SMTP response line
SmtpServerInfo
Keeps information about the remote SMTP server
TextMimeData
Represents textual mime data

Enums

AuthMechanism
Defines the available authentication mechanism
CharacterSet
The used character set
ContentDisposition
Specifies the content disposition of a mime part. Compare https://tools.ietf.org/html/rfc2183 for details.
MediaSubtype
Detailed media types Compare https://www.iana.org/assignments/media-types/media-types.xhtml
MediaToptype
Top level media types
RecipientGroup
The recipient
SequenceNodeSelectionMode
Selection mode for retrieving a MessageSequence from a nested SequenceNode structure.
SmtpEventType
Types of SMTP events
SmtpResponseType
Basic type of a SMTP response
TransferEncoding
The transfer-encoding used for encoding 8bit data if necessary

Extensions

MediaSubtypeExtension on MediaSubtype
Extension on MediaSubtype
SequenceExtension on List<MimeMessage>
Allows to get a sequence for a list of MimeMessages easily

Exceptions / Errors

BaseMailException
Base exception for any IMAP, POP, SMTP or highlevel API exceptions
InvalidArgumentException
Notifies about an invalid argument
SmtpException
Contains details about SMTP problems