sendEmail abstract method

Future<bool> sendEmail({
  1. required String domain,
  2. required String from,
  3. required List<String> recipients,
  4. required String body,
  5. bool useTls,
})

Sends an email from from to recipients at the given domain.

body is the full email content including headers. If useTls is true, attempts to use STARTTLS when supported. Returns true if the email was accepted by the remote server.

Implementation

Future<bool> sendEmail({
  required String domain,
  required String from,
  required List<String> recipients,
  required String body,
  bool useTls,
});