1$mail->AddAttachment($_FILES['uploaded_file']['tmp_name'], $_FILES['uploaded_file']['name']);
2
1//Put this line anywhere after $mail = new PHPMailer(); but before $mail->Send()
2//Ensure that you use the full file path to the document
3$mail->AddAttachment('/var/www/html/include/test.pdf');