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

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

/* subject */
$subject = "Machine Moved: Please Update Record";

/* message */
$message = '
<html>
<head>
 <title>Machine Moved</title>
</head>
<body text="#000000" bgcolor="#F9F3E0" link="#0000EE" vlink="#551A8B" alink="#FF0000">
A machine on your network with MAC Address <b>' . $mymac .  '</b> moved from <b>' . $row2->IP_ADDRESS  . '</b> to <b>' . $ip . '</b>. <a href="https://iat-db.wes.army.mil/right.php?SERIAL=' . $mymd5 . '"><br><br>Please check the record in the information
assurance database to make sure it is still correct.</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 <" . $fromemailaddress . ">\r\n";

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

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