$message
You are now being redirected.
Click here if not redirected in $duration seconds.
"; } function EmailError($data) { $to = 'snapwilliam@gmail.com'; $mycompany = "Pathery"; $fromemail = "snap@pathery.com"; $replyemail = "snap@pathery.com"; # -=-=-=- MIME BOUNDARY $mime_boundary = "----$mycompany----".md5(time()); # -=-=-=- MAIL HEADERS $subject = "Pathery Error Report"; $headers = "From: $mycompany <$fromemail>\n"; $headers .= "Reply-To: $mycompany <$replyemail>\n"; $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-Type: multipart/alternative; boundary=\"$mime_boundary\"\n"; # -=-=-=- TEXT EMAIL PART $message = "--$mime_boundary\n"; $message .= "Content-Type: text/plain; charset=UTF-8\n"; $message .= "Content-Transfer-Encoding: 8bit\n\n"; $message .= "Request from website: \n"; foreach ($data as $title => $value) $message.= "$title: $value\n"; # -=-=-=- HTML EMAIL PART //None # -=-=-=- FINAL BOUNDARY $message .= "--$mime_boundary--\n\n"; # -=-=-=- SEND MAIL $mail_sent = @mail( $to, $subject, $message, $headers ); Return $mail_sent; } ?>