You are here

public function MailerInterface::attemptImmediateSend in Simplenews 8

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

Send mail spool immediatly if cron should not be used.

Parameters

array $conditions: (Optional) Array of spool conditions which are applied to the query.

bool $use_batch: (optional) Whether the batch API should be used or not.

Return value

bool TRUE if the mails were sent or a batch was prepared, FALSE if not.

1 method overrides MailerInterface::attemptImmediateSend()
Mailer::attemptImmediateSend in src/Mail/Mailer.php
Send mail spool immediatly if cron should not be used.

File

src/Mail/MailerInterface.php, line 26

Class

MailerInterface
Sends newsletter and subscription mails.

Namespace

Drupal\simplenews\Mail

Code

public function attemptImmediateSend(array $conditions = array(), $use_batch = TRUE);