SmtpServerInfo class

Keeps information about the remote SMTP server

Persist this information to improve initialization times.

Constructors

SmtpServerInfo(String host, int port, {required bool isSecure})
Creates a new server information

Properties

authMechanisms ↔ List<AuthMechanism>
The supported authentication mechanisms
getter/setter pair
capabilities ↔ List<String>
The server capabilities
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
host → String
The remote host
final
isSecure → bool
Is a secure connection being used (from the start)?
final
maxMessageSize ↔ int?
The maximum message size in bytes
getter/setter pair
port → int
The remote port
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
supports8BitMime → bool
Checks if the server supports sending of 8bit encoded messages.
no setter
supportsChunking → bool
Checks if the server supports chunked message transfer using the BDATA command.
no setter
supportsStartTls → bool
Checks if the server supports (and usually expects) switching to SSL connection before authentication.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
supports(String capability) → bool
Checks if the given capability is supported, e.g. final supportsPipelining = smtpClient.serverInfo.supports(PIPELINING);.
supportsAuth(AuthMechanism authMechanism) → bool
Checks of the specified authMechanism is supported.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited