You are here

public function MailerInterface::sendMail in Simplenews 8

Same name and namespace in other branches
  1. 8.2 src/Mail/MailerInterface.php \Drupal\simplenews\Mail\MailerInterface::sendMail()
  2. 3.x src/Mail/MailerInterface.php \Drupal\simplenews\Mail\MailerInterface::sendMail()

Send a node to an email address.

Parameters

\Drupal\simplenews\Mail\MailInterface $mail: The mail object.

Return value

bool TRUE if the email was successfully delivered; otherwise FALSE.

1 method overrides MailerInterface::sendMail()
Mailer::sendMail in src/Mail/Mailer.php
Send a node to an email address.

File

src/Mail/MailerInterface.php, line 58

Class

MailerInterface
Sends newsletter and subscription mails.

Namespace

Drupal\simplenews\Mail

Code

public function sendMail(MailInterface $mail);