php send email with image

前端 未结 3 1274
广开言路
广开言路 2021-01-26 17:30

I am trying to send an email with a picture; the body of my email is:



        
3条回答
  •  醉话见心
    2021-01-26 18:10

    No, it's not because of the heredoc. You need to send a properly formatted HTML mail, which you aren't. There's various headers and MIME 'skeleton' structural stuff that you're not sending at all.

    Don't try to build one yourself. Use Swiftmailer or PHPMailer to do that for you.

提交回复
热议问题