Skip to content Skip to sidebar Skip to footer

Php - Embed Generated Image From External File Into Html Email

I have a sign-up form. When someone signs up, they immediately receive an email (in HTML format) with the following information: 1) Their sign-up information (Name, P#, Email, etc.

Solution 1:

I answered most of this in your previous question here.

The likely issue again is that you can't embedded base64 encoded images directly into the body of the email, you have to treat them like attachments. The way you do that is with a content section and an appropriate content id.

Check out the documentation for the addHTMLImage method. https://pear.php.net/manual/en/package.mail.mail-mime.addhtmlimage.php

It's not the best documentation but check it out and my other answer. That should give you enough to solve the issue.

Post a Comment for "Php - Embed Generated Image From External File Into Html Email"