DVHttpMailProvider class abstract

Shared behaviour for mail providers that speak HTTP.

Each provider supplies the endpoint, headers and body encoding for its own API; this posts the request and turns a non-2xx answer into a DVMailProviderException carrying the status and body.

Implemented types

Constructors

DVHttpMailProvider({required String apiKey, required Uri baseUrl, required DVHttpSend transport})
const

Properties

apiKey → String
final
baseUrl → Uri
final
hashCode → int
The hash code for this object.
no setterinherited
providerName → String
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transport → DVHttpSend
final

Methods

buildRequest(DVMailMessage message) → DVHttpRequest
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

Static Methods

formatAddress(DVMailAddress address) → String
RFC 5322 display form, e.g. Ada Lovelace <ada@example.com>.