SMTPEmailDeliveryClient class
SMTP implementation of EmailDeliveryClient using raw sockets.
- Implemented types
Constructors
- SMTPEmailDeliveryClient({required String hostname, required DNSResolver dnsResolver, int mxServerPort = 25, Duration connectTimeout = const Duration(seconds: 30)})
Properties
- connectTimeout ↔ Duration
-
getter/setter pair
- dnsResolver → DNSResolver
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hostname → String
-
final
- mxServerPort → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> -
Gracefully shuts down the client, releasing any resources.
override
-
connectToMXServer(
InternetAddress mxServer) → Future< Socket> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
selectMXServerAddress(
List< MXRecord> mxRecords) → InternetAddress -
sendEmail(
{required String domain, required String from, required List< String> recipients, required String body, bool useTls = true}) → Future<bool> -
Sends an email from
fromtorecipientsat the givendomain.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited