You are here

public function MailerInterface::attemptImmediateSend in Simplenews 3.x

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

Send mail spool immediately 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 immediately if cron should not be used.

File

src/Mail/MailerInterface.php, line 25

Class

MailerInterface
Sends newsletter and subscription mails.

Namespace

Drupal\simplenews\Mail

Code

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