PHPMailer, AddStringAttachment and Data URI Scheme

后端 未结 2 1757
走了就别回头了
走了就别回头了 2020-12-10 16:02

I have converted the contents of a canvas element to data (URI Scheme) using toDataURL() ($contact_image_data) and I want to send this

2条回答
  •  粉色の甜心
    2020-12-10 16:18

    Yes it should be possible. Are you calling toDataURL() with the 'image/png' MIME type so it knows how to output it?

    Try breaking your script into two components - make sure you really have a PNG then try mailing it.

    For example, will test.png open on your computer when written?..

    
    

    Hope that helps a bit!

提交回复
热议问题