Hi,
i send email with attachments with no problems, but the file name of attached file is like 56218_b96cyb5t.pdf and not 56218.pdf real neme of file i upload in the application.
Is possible to attach the file with original name? "usrName" instead "filesrdo" ?
I use:
$fileArray = my_json_decode($record["allegato"]);
$attachments = array();
foreach($fileArray as $f)
{
$attachments[] = array("path" => $f["name"]);
}
// send the email
$subject="mail with attach";
$arr = runner_mail(array('from' => $from,'to' => $email, 'subject' => $subject,'body' => $body,'attachments' =>$attachments));
Thanks
Fabio
(phprunner Enterprise 9.8 build 29520 x64)