I'm trying to send an email with an image in base64 on the body with PHP using the code below, but the image never appears... If I change to an URL it works, but it doesn't with the base64... I tested the base64 on a new page only with <img src=base64> and worked too... What am I missing??
<?php
    // recipients
    $to  = $_POST['email'];
    // subject
    $subject = 'Test';
    // message
    $message = '
        <html>
        <head>
         <title>Test</title>
        </head>
        <body>
            <img src="'.$_POST['imageFromOtherPage'].'"/>
        </body>
        </html>
        ';
    // To send HTML mail, the Content-type header must be set
    $headers  = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
    // Mail it
    mail($to, $subject, $message, $headers);
 ?>
Here is my base64 image example: http://jsfiddle.net/28nP4/
 
     
     
     
     
    