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

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

/* subject */
$subject = "Machine Assigned the next step";

/* message */
$message = '
<html>
<head>
 <title>Machine Assigned</title>
</head>
<body text="#000000" bgcolor="#F9F3E0" link="#0000EE" vlink="#551A8B" alink="#FF0000">
You have been appointed as IASO of a computer/network device with the MAC Address of <b></b> and current ip address of <b>134.164.189.53</b>. <a href="https://iat-db.wes.army.mil/right.php?SERIAL=6c8a37a8ac515653e558f782ab9c641b">
<br><br> Click this link and make sure this machine should be assgined to you.</a>
<br><br>If you feel this machine should not be assigned to you please fill in the form below stating your reason for not accepting this machine.
<form name="iasoassigned" method="post" action="iasoassigned.php">
<input type="submit" name="Submit" value="Accept Machine"><br>
<input type="submit" name="Submit" value="Reject Assignment(please supply reason)">
<textarea name="REASON" rows="10" COLS="60"> </textarea>
</form>
</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 .= $fromemailaddress . "\r\n";

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

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