I created a base64 image to send an email to a client, there is a mobile device. It works in an email application, but the gmail application shows a missing image
Is this just Google mail for blocking data images for security? There is no button to display images either
The code:
$ headers = "From: info@mydomain.com \ r \ n"; $ headers. = "Reply-To: info@mydomain.com \ r \ n"; $ headers. = "MIME-Version: 1.0 \ r \ n"; $ headers. = "Content-Type: text / html; charset = ISO-8859-1 \ r \ n"; $imagedata = file_get_contents("http://www.barcodesinc.com/generator/image.php? code=12345&style=68&type=C128B&width=180&height=70&xres=1&font=1"); $base64 = base64_encode($imagedata); $message ="<img src='data:image/png;base64,$base64'>"; mail($to,$subject,$message,$headers);</pre>
email base64 gmail
likdaboo
source share