PHPmailer and pdf attachment
问题 I'm trying to send an email with a PDF attachment using the phpmailer class. I used this code: Within mailTo function: $mail->AddAttachment($pdffile); where $pdffile = $_SERVER['DOCUMENT_ROOT'] . "/facturen/test.pdf" Sending the mail results in an email without attachment but with: --b1_3768f40f33d9a5dec555d03a15af14f9 Content-Type: text/html; charset = "iso-8859-1" Content-Transfer-Encoding: 8bit at the top of my email and on the bottom of my email: --b1_3768f40f33d9a5dec555d03a15af14f9