IMessageClient class abstract

The IMessageClient interface defines methods for sending emails with the mailgun API.

Implement this interface to create a custom message client.

The IMessageClient.send should be implemented to send a message using the mailgun API, and the IMessageClient.sendMime method should be implemented to send MIME messages.

Example:

class MyMailgunSender extends IMessageClient {
 @override
  Future<dynamic> send(
    ...
   ) async {
    ...
 }
}

Constructors

IMessageClient()

Properties

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(MessageParams params) Future<Response>
Sends an email using the mailgun API.
sendMime(MimeMessageParams params) Future<Response>?
Optional method for sending MIME messages.
toString() String
A string representation of this object.
inherited

Operators

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