From d6a339676729b80692d070648787ae88ab5eb7ff Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Thu, 3 Sep 2020 10:00:48 +0200 Subject: [PATCH] Fix wrong variable name --- sender.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sender.php b/sender.php index 4127835..3383ecd 100644 --- a/sender.php +++ b/sender.php @@ -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"]));