Location: PHPKode > projects > Network Asset Management Archive > nama/mailnew.inc
<?
/* recipients */

$to  = "<" . $liaso .  ">"; // note the comma

/* subject */
$subject = "New Machine on Network: Please Update Record";

/* message */
$message = '
<html>
<head>
 <title>New Machine Found</title>
</head>
<body text="#000000" bgcolor="#F9F3E0" link="#0000EE" vlink="#551A8B" alink="#FF0000">
The machine below with MAC Address ' . $mymac .  ' IP address ' . $ip . ' has been discovered on the Network. <br><br> <a href="https://iat-db.wes.army.mil/right.php?SERIAL=' . $mymd5 . '">Please log in to the information assurance database and fill in the record.</a>
</html>
';

/* To send HTML mail, you can set the Content-type header. */
$headers  = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

/* additional headers */
$headers .= "From: Information Assurance Team <" . $fromemailaddress . ">\r\n";

$headers .= "Bcc: \r\n";

/* and now mail it */
mail($to, $subject, $message, $headers);
?>
Return current item: Network Asset Management Archive