public function SpoolStorageInterface::addMail in Simplenews 3.x
Same name and namespace in other branches
- 8.2 src/Spool/SpoolStorageInterface.php \Drupal\simplenews\Spool\SpoolStorageInterface::addMail()
- 8 src/Spool/SpoolStorageInterface.php \Drupal\simplenews\Spool\SpoolStorageInterface::addMail()
Save mail message in mail cache table.
Parameters
array $spool: The message to be stored in the spool table, as an array containing the following keys:
- entity_type
- entity_id
- newsletter_id
- snid or data
- status: (optional) Defaults to SpoolStorageInterface::STATUS_PENDING
- time: (optional) Defaults to REQUEST_TIME.
1 method overrides SpoolStorageInterface::addMail()
- SpoolStorage::addMail in src/
Spool/ SpoolStorage.php - Save mail message in mail cache table.
File
- src/
Spool/ SpoolStorageInterface.php, line 140
Class
- SpoolStorageInterface
- The spool storage manages a queue of mails that need to be sent.
Namespace
Drupal\simplenews\SpoolCode
public function addMail(array $spool);