Skip to content

Commit

Permalink
Fix Mandrill class's subject and response problems
Browse files Browse the repository at this point in the history
  • Loading branch information
suhaboncukcu committed Sep 28, 2018
1 parent ad24ded commit dc18565
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Mandrill.php
Expand Up @@ -64,7 +64,7 @@ public function send(EmailInterface $email)
$from = $email->getFrom();

$message = [
'subject' => 'example subject',
'subject' => $email->getSubject(),
'from_email' => $from['email'],
'to' => $this->mapEmails($email->getTos())
];
Expand Down Expand Up @@ -107,6 +107,7 @@ public function send(EmailInterface $email)
}

$result = $this->mandrill->messages->send($message, false, $this->ipPool);
$result = current($result);
if ($result && $result['status'] &&
($result['status'] === 'sent' || $result['status'] === 'queued' || $result['status'] === 'scheduled')
) {
Expand Down

0 comments on commit dc18565

Please sign in to comment.