39 if (!
$message instanceof \Swift_Message) {
40 throw new \InvalidArgumentException(
'You must provide either a Swift_Message instance or a callable returning it');
57 curl_setopt($ch, CURLOPT_URL,
'https://mandrillapp.com/api/1.0/messages/send-raw.json');
58 curl_setopt($ch, CURLOPT_POST, 1);
59 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
60 curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(
array(
61 'key' => $this->apiKey,
const ERROR
Runtime errors.
__construct($apiKey, $message, $level=Logger::ERROR, $bubble=true)
static execute($ch, $retries=5, $closeAfterDone=true)
Executes a CURL request with optional retries and exception on failure.
Create styles array
The data for the language used.
Base class for all mail handlers.
MandrillHandler uses cURL to send the emails to the Mandrill API.
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
send($content, array $records)
{}