how to send an HTML email with an inline attached image with PHP
问题 I have a PHP script which sends an HTML email with an attached image. It works beauifully, however, I can't get the attachment to display in an <img> tag in the email body. The attached file is called postcard.png and the original filename on the server is 4e60348f83f2f.png . I've tried giving the image URL as various things: cid:postcard.png , cid:4e60348f83f2f.png , postcard.png , and 4e60348f83f2f.png . Nothing works. I think the key part that I'm doing wrong is here, because this makes it