DVSmtpClient class
Constructors
- DVSmtpClient({required String host, required int port, required DVSmtpConnect connect, bool secure = false, String? username, String? password, String clientName = 'dartvel'})
-
const
Properties
- clientName → String
-
final
- connect → DVSmtpConnect
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- host → String
-
final
- password → String?
-
final
- port → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secure → bool
-
True for implicit TLS (usually port 465). Otherwise the client issues
STARTTLS when the server advertises it.
final
- username → String?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
{required String envelopeFrom, required List< String> recipients, required String fromHeader, required List<String> toHeaders, required String subject, required String text, String? html, Map<String, String> headers = const <String, String>{}, DateTime? date}) → Future<void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
bodyIsSevenBit(
String body) → bool -
Whether
bodycan go down the wire as it stands. -
buildMessage(
{required String fromHeader, required List< String> toHeaders, required String subject, required String text, String? html, Map<String, String> headers = const <String, String>{}, required DateTime date}) → String -
Builds the RFC 5322 message, ending with the
.terminator. -
encodeAddressHeader(
String value) → String -
Name <address>with only the name encoded. -
encodeHeaderValue(
String value) → String -
valueas it may appear in a header. -
formatDate(
DateTime date) → String -
RFC 5322 date, e.g.
Fri, 31 Jul 2026 12:34:56 +0000. -
quotedPrintable(
String body) → String -
bodyas quoted-printable.