You are here

public function MailgunHandlerInterface::sendMail in Mailgun 8

Connects to Mailgun API and sends out the email.

Parameters

array $mailgunMessage: A message array, as described in https://documentation.mailgun.com/en/latest/api-sending.html#sending.

Return value

bool TRUE if the mail was successfully accepted by the API, FALSE otherwise.

See also

https://documentation.mailgun.com/en/latest/api-sending.html#sending

1 method overrides MailgunHandlerInterface::sendMail()
MailgunHandler::sendMail in src/MailgunHandler.php
Connects to Mailgun API and sends out the email.

File

src/MailgunHandlerInterface.php, line 24

Class

MailgunHandlerInterface
The interface for Mailgun handler service.

Namespace

Drupal\mailgun

Code

public function sendMail(array $mailgunMessage);