Add Attachment PHPmailer
Posted on October 31, 2015 • 1 minute •php
PHPmailer Probably the world's most popular code for sending email from PHP!
$mail->AddAttachment('path_for_pdf', $name = 'Name_of_pdf', $encoding = 'base64', $type = 'application/pdf');