Am sending a PDF attachment using PHPMailer like this:
The attachment is sent with the email, but when I try to open, or save it to my machine to open it, get a message saying "couldnt opne file because it's either not a supported file type or because the file has been damaged eg it was sent as an attachment and wasnt correctly encoded....
I tried adjust the method above like this:
$mail->AddStringAttachment("files/pdf/name.pdf", "name.pdf","base64", "application/pdf")
but this didnt work.
The original file (I am sending) does open ok.
Any thoughts greatly appreciated.