attach images for HTML emails in php

attach images for HTML emails in php

HTML emails will attampt to download their images and stylesheets from our web server. Because of security and privacy reason, many MUAs will refuse to attempt these downloads.

We can add images as attachments to the email, and then point HTML at the attached images.- Change the first Content type of email to be multipart/related.Boundary definition must be included.- When we add an image as an attachment, include this additional header: Content-Location: URL URL is the “URL” that we use inside the tag to include the image.