Hi, when a record is added, an email arrives but I need to attach the selected file; If the mail arrives but not the selected file.
Have a table "PRESTAMO" with 5 fields:
Fields (id, concepto, file_1, date, time)
// Email Sending event
function Email_Sending(&$Email, &$Args) {
//var_dump($Email); var_dump($Args); exit();
$Email->Recipient = "prueba@hotmail.com";
$Email->Subject = "último archivo";
$Email->Format = "HTML";
$Email->Charset = "ISO-8859-1";
$Email->AddAttachment($Args["rsnew"]["file_1"]);
return TRUE;
}
Thank you very much for your ideas.