Skip to content

Commit

Permalink
Add mails
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh committed Jul 13, 2015
1 parent afacec2 commit f3a1a2b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Support/Clockwork/Converter.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,18 @@ public function convert($data)
}
}

if (isset($data['swiftmailer_mails'])) {
foreach($data['swiftmailer_mails']['mails'] as $mail) {
$output['emailsData'][] = [
'data' => [
'to' => $mail['to'],
'subject' => $mail['subject'],
'headers' => isset($mail['headers']) ? explode("\n", $mail['headers']) : null,
],
];
}
}

return $output;
}

Expand Down

0 comments on commit f3a1a2b

Please sign in to comment.