PHP mail() attachment is corrupt

后端 未结 3 1597
Happy的楠姐
Happy的楠姐 2021-01-25 16:00

I have been struggling with trying to send an email with an attachment using PHP. It used to work but the message body was scrambled. Now I have got the message body to work but

3条回答
  •  無奈伤痛
    2021-01-25 16:40

    I could be wrong but I believe you will have to encode the PDF somehow, 7bit won't work as the PDF file will have content outside the range. Why not use base64 for the PDF?

提交回复
热议问题