Bug on base64 image | WordPress.org

[ad_1]

Good morning.

I would like to point out a problem that occurs when an inside the mail content of the email to be sent is presente a base64 image like this:
<img src=”data:image/jpeg;base64,…

When the placeholder ‘%%MAILCONTENT%%’ is replaced with the mail content this tag is replaced with:

<img src=”image/jpeg;base64,…

and therefore the image is no longer interpreted correctly because ‘data:’ is missing.
This happens for all image types (jpeg, png, etc.)

If the template is removed using the ‘haet_mail_use_template’ filter, the image is displayed correctly.

I believe the problem is generated while replacing the placeholder with the content of the mail.

I currently use the plugin with a template saved in my theme folder, but I don’t make any changes to the mail content.

Best Regards.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer