Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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');
 
PREVIOUS NEXT
Tagged: #phpmailer #addAttachment
ADD COMMENT
Topic
Name
6+5 =