Answers for "phpmailer addAttachment"

PHP
1

phpmailer send attachment

$mail->AddAttachment($_FILES['uploaded_file']['tmp_name'], $_FILES['uploaded_file']['name']);
Posted by: Guest on September-29-2020
0

phpmailer addAttachment

//Put this line anywhere after $mail = new PHPMailer(); but before $mail->Send()
//Ensure that you use the full file path to the document
$mail->AddAttachment('/var/www/html/include/test.pdf');
Posted by: Guest on September-09-2021

Browse Popular Code Answers by Language