1

I'm trying to send via PHPMailer - http://phpmailer.worxware.com/ emails with attachment.

$ mail-> AddAttachment ($ file, basename ($ file), "base64", mime_content_type ($ file));

Annex ever comes alright sometimes comes damaged (for example, from 300 kb size comes just 72 Kb). Specifically, I try to PDF files.

thank you

I use SMTP

infomf
  • 167
  • 1
  • 3
  • 12

1 Answers1

0

In my case I have directly provide path of pdf It is working fine for me.

 $mail->AddAttachment('PDF FILE PATH');  

Please refer this link Send File Attachment from Form Using phpMailer and PHP

http://www.ustrem.org/en/articles/send-mail-using-phpmailer-en/

Community
  • 1
  • 1
Roopendra
  • 7,674
  • 16
  • 65
  • 92