Public feed #890212

zach

public php v1 · immutable
Raw Edit
·published 2008-02-03 15:45 UTC
rendered paste body
// **** CONTACT FORM MAIL CONTACT FUNCTION **** //function mail_contact($contacter_name, $contacter_email, $contacter_msg) {    // Check if required information is filled out.     if (notnull($contacter_email) && notnull($contacter_msg)) {        global $config; // Call global configuration array        $to = $config["name"] . " <". $config["email"] .">\n\n"; // E-mail to my name and e-mail        $subject = "Site Contact Form"; // Subject of the e-mail        $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; // Needed header information        $headers .= "From: ". $contacter_name ." <". $contacter_email .">\r\n"; // Info about         mail($to, $subject, $contacter_msg, $headers); // php mail() function to send off the contact mail        return true;    }    else return false;}