Fix wrong variable name
This commit is contained in:
parent
e513d68734
commit
d6a3396767
1 changed files with 1 additions and 1 deletions
|
@ -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"]));
|
||||
|
|
Loading…
Reference in a new issue