function SpoolStorageInterface::addMail in Simplenews 8
Same name and namespace in other branches
- 8.2 src/Spool/SpoolStorageInterface.php \Drupal\simplenews\Spool\SpoolStorageInterface::addMail()
- 3.x 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:
- nid
- tid
- 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 129
Class
- SpoolStorageInterface
- The spool storage manages a queue of mails that need to be sent.
Namespace
Drupal\simplenews\SpoolCode
function addMail(array $spool);