Fix wrong variable name

This commit is contained in:
Kumi 2020-09-03 10:00:48 +02:00
parent e513d68734
commit d6a3396767

View file

@ -41,7 +41,7 @@ try {
$mailer->Body = ($html ? $html : $text);
$mailer->AltBody = ($html ? $text : null);
foreach ($attachments as $attachment) {
foreach ($json["attachments"] as $attachment) {
$tempfile = tempnam(sys_get_temp_dir(), "EXPMAIL_");
file_put_contents($tempfile, file_get_contents($attachment["url"]));
$filename = ($attachment["filename"] ? $attachment["filename"] : getFilename($attachment["url"]));