I send email with attachment, everything is working, but I get email with attachment temporary name. What is wrong with this code ?
foreach ($_FILES["file"]["name"] as $k => $v) {
$tmp_name = $_FILES["file"]["tmp_name"][$k];
$name = basename($_FILES["file"]["name"][$k]);
$mail->AddAttachment($tmp_name,$name);
}