SmtpMailProvider class

Sends through an SMTP server.

Unlike the HTTP providers this speaks the SMTP protocol over a raw socket, so it is unavailable on web; constructing a connection there throws with the HTTP alternatives named. STARTTLS is used automatically when the server advertises it and the connection is not already secure.

Implemented types

Constructors

SmtpMailProvider({required String host, int port = 587, bool secure = false, String? username, String? password, String clientName = 'dartvel', DVSmtpConnect connect = dvConnectSmtp})

Properties

client → DVSmtpClient
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(DVMailMessage message) → Future<void>
override
toString() → String
A string representation of this object.
inherited

Operators

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