how to send email with graphic via php

前端 未结 4 796
孤独总比滥情好
孤独总比滥情好 2021-01-13 15:22

I would like to send HTML email with graphic elements included. I have no idea to attach garaphics to this email.

4条回答
  •  情话喂你
    2021-01-13 15:54

    You probably don't want to do an inline attachment by hand, it's far easier, and less error prone to use a library, like PHPMailer.
    It can attach the inline images, or if you give it some HTML code, it will attach the images by itself and modify the code to display them.

提交回复
热议问题