Location: PHPKode > scripts > MailHeaderClass > mailheaderclass/hildegard.test.php
<?
require("hildegard.class.php");

/* read testmail from txtfile on webserver (change as needed!) */
$headers = file ('http://dev.waaf.net/hildegard/_hilde_test.txt');

$mail = new hildegard($headers);

echo "<pre>
Mail is from:         ".htmlentities($mail->from)."
Mail is from name:    ".htmlentities($mail->from_name)."
Mail is from address: ".htmlentities($mail->from_addr)."
Mail is sent cc:      ".htmlentities($mail->cc)."
Mail is sent to:      ".htmlentities($mail->to)."
Mail was sent on:     ".htmlentities($mail->date)."
Mail has Message-ID:  ".htmlentities($mail->msgid)."
Mail has Subject:     ".htmlentities($mail->subject)."\n";
if($mail->anh)
        echo "Mail has Attachment(s)\n";
echo "complete header as one string: 
------------------------------------
".htmlentities($mail->head)."
------------------------------------
";
echo "</pre>";

?>
Return current item: MailHeaderClass