SmtpServer class

Constructors

SmtpServer(String host, {int port = 587, String? name, bool ignoreBadCertificate = false, bool ssl = false, bool allowInsecure = false, String? username, String? password, String? xoauth2Token})

Properties

allowInsecure bool
This library will always use secure connections if the server supports it, and will abort if unsuccessful unless allowInsecure is true.
final
hashCode int
The hash code for this object.
no setterinherited
host String
final
ignoreBadCertificate bool
final
password String?
final
port int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
ssl bool
Connect to the smtp server over a secure ssl connection. Setting this option to false does NOT mean, that mails will be sent over unencrypted connections! SSL for smtp servers is uncommon! Usually this library will connect to the server over an insecure connection first and use the smtp command starttls to upgrade the connection to a secure one. If the server doesn't support starttls we will abort if allowInsecure is false.
final
username String?
final
xoauth2Token String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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