\nReply-To:$YourEmail\n"; $EMAIL_HEADER.="MIME-Version: 1.0\n"; $EMAIL_HEADER.="Content-Type:multipart/mixed;boundary=$UUID\n"; $msg = "Sharing my TrapSet for I-Trap:\n\n\n"; $msg.= "Data Sender: $YourEmail - $YourName , $YourCompany\n\n"; $msg.= "Output Device:\t$Device\n"; $msg.= "\nParameters:\n$Paramaters\n\n"; $msg.= "==================================================================\n"; attachMessage($msg); if ($_FILES['TrapsetFile']['size']>0) attachFile($_FILES['TrapsetFile']['tmp_name'],$_FILES['TrapsetFile']['type'],"TrapsetFile.tio"); if (sendEmail($SEND_TO,$SUBJECT)) header($REDIRECT_HEADER.$REDIRECT_SUCCESS_PAGE); else header($REDIRECT_HEADER.$REDIRECT_ERROR_PAGE); } function attachMessage($msg) { global $UUID,$EMAIL_HEADER; $EMAIL_HEADER.="--$UUID\n"; $EMAIL_HEADER.="Content-Type: text/plain\n"; $EMAIL_HEADER.="Content-Transfer-Encoding: 8bit\n\n"; $EMAIL_HEADER.="$msg\n"; } function attachFile($file,$mimetype,$realname) { global $UUID,$EMAIL_HEADER; $name=$realname; $content=fread(fopen($file,"r"),filesize($file)); $content=chunk_split(base64_encode($content)); $EMAIL_HEADER.="--$UUID\n"; $EMAIL_HEADER.= "Content-Type:$mimetype;name=\"$name\"\n"; $EMAIL_HEADER.="Content-Transfer-Encoding: base64\n"; $EMAIL_HEADER.="Content-Disposition:attachment;filename=\"$name\"\n\n"; $EMAIL_HEADER.="$content\n"; } function sendEmail($to,$subject) { global $EMAIL_HEADER,$UUID; $EMAIL_HEADER.= "--$UUID--"; return mail($to,$subject,"",$EMAIL_HEADER); } ?> Choosing trapping parameters and using TrapSets. Upload TrapSets
Upload Trapsets
Your name
Company
E-Mail Address
Output device(s)
Trapsets File
What paramaters are selected and why