<?php

// Example - showing how simple it is to send a correct MIME email
$files = array(
           
'test.php',
           
'GenerateMIMEMail.inc.php',
           
'INLINEIMAGE1' => 'vest_gregginside.jpg',
           
'INLINEIMAGE2' => 'gummi.jpg'
         
);
$html "<b>Here is an image:</b><br>INLINEIMAGE1<br>Isn't that nice?<br>INLINEIMAGE2";
$plain "If you viewed this in HTML you would see an inline image.";


include 
"GenerateMIMEMail.inc.php";
list(
$header$body) = GenerateMIMEMail($html$plain$files);


// Uncomment the following line and correct the email address to
// send an email
#$success = mail("dummy@example.com", "Test Subject", $body, $header);


// -- debugging info
print "<pre>";
var_dump($header$body$success);
?>