Skip to content

Commit f3a1a2b

Browse files
committed
Add mails
1 parent afacec2 commit f3a1a2b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Support/Clockwork/Converter.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,18 @@ public function convert($data)
117117
}
118118
}
119119

120+
if (isset($data['swiftmailer_mails'])) {
121+
foreach($data['swiftmailer_mails']['mails'] as $mail) {
122+
$output['emailsData'][] = [
123+
'data' => [
124+
'to' => $mail['to'],
125+
'subject' => $mail['subject'],
126+
'headers' => isset($mail['headers']) ? explode("\n", $mail['headers']) : null,
127+
],
128+
];
129+
}
130+
}
131+
120132
return $output;
121133
}
122134

0 commit comments

Comments
 (0)