public function MandrillAPI::getSenderTimeSeries in Mandrill 8
Gets recent history for a sender.
Parameters
string $email: The email address of the sender.
Return value
array Array of sender history.
Overrides MandrillAPIInterface::getSenderTimeSeries
File
- src/
MandrillAPI.php, line 290
Class
- MandrillAPI
- Service class to integrate with Mandrill.
Namespace
Drupal\mandrillCode
public function getSenderTimeSeries($email) {
$data = array();
try {
if ($mandrill = $this
->getAPIObject()) {
$data = $mandrill->senders
->timeSeries($email);
}
} catch (\Exception $e) {
\Drupal::messenger()
->addError(t('Mandrill: %message', array(
'%message' => $e
->getMessage(),
)));
$this->log
->error($e
->getMessage());
}
return $data;
}