You are here

public function EmailHandlerInterface::sendEmail in Easy Email 8

Same name and namespace in other branches
  1. 2.0.x src/Service/EmailHandlerInterface.php \Drupal\easy_email\Service\EmailHandlerInterface::sendEmail()

Sends an email entity.

Parameters

\Drupal\easy_email\Entity\EasyEmailInterface $email: The email entity to send

array $params: The initial params array

bool $send_duplicate: Send email even if another email with the same unique key has been sent. (default = false)

Return value

bool TRUE is sending is successful, FALSE if failed.

1 method overrides EmailHandlerInterface::sendEmail()
EmailHandler::sendEmail in src/Service/EmailHandler.php
@inheritDoc

File

src/Service/EmailHandlerInterface.php, line 43

Class

EmailHandlerInterface

Namespace

Drupal\easy_email\Service

Code

public function sendEmail(EasyEmailInterface $email, $params = [], $send_duplicate = FALSE);