예제 #1
0
                }
                $message .= " = " . htmlentities($value, ENT_QUOTES, "UTF-8") . "</p>";
                $message_admin .= " = " . htmlentities($value, ENT_QUOTES, "UTF-8") . "</p>";
            }
        }
        $to = $email;
        // the person who filled out the form
        $cc = "";
        $bcc = "";
        $from = "Bike Shop <*****@*****.**>";
        // subject of mail should make sense to your form
        $todaysDate = strftime("%x");
        $subject = "Registration: " . $todaysDate;
        $mailed = sendMail_1($to, $cc, $bcc, $from, $subject, $message);
        $mailed_josh = sendMail_1("*****@*****.**", $cc, $bcc, $from, $subject, $message_admin);
        $mailed_blaine = sendMail_1("*****@*****.**", $cc, $bcc, $from, $subject, $message_admin);
    }
}
?>

    <article id="main"> 
<?php 
if (isset($_POST["btnSubmit"]) and empty($errorMsg)) {
    // closing of if marked with: end body submit
    print "<div class='requestText'>";
    print "<h1>Your Request has ";
    if (!$mailed) {
        print "not ";
    }
    print "been processed</h1>";
    print "<p>A copy of this message has ";
예제 #2
0
    //            $bikeMessageERROR = true;
    //        }
    if (!$errorMsg) {
        $message = '<h2>Customer Message:<h2>';
        $message .= '<h3>From: ' . $customerInfo[0]['fldFirstName'] . " " . $customerInfo[0]['fldLastName'] . " " . $customerInfo[0]['fldEmail'] . '</h3>';
        $message .= "<p>";
        $message .= $bikeMessage;
        $to = $donorInfo[0]['fldEmail'];
        //$donorInfo[0][2]; // the person who filled out the form
        $cc = "";
        $bcc = "";
        $from = $customerInfo[0]['fldEmail'];
        // subject of mail should make sense to your form
        $todaysDate = strftime("%x");
        $subject = "Sent: " . $todaysDate;
        $mailed = sendMail_1($to, $cc, $bcc, $from, $subject, $message);
    }
}
?>
    <article id="main">
<?php 
if (isset($_POST["btnSubmit"]) and empty($errorMsg)) {
    // closing of if marked with: end body submit
    print "<div class='requestText'>";
    print "<h1>Your Request has ";
    if (!$mailed) {
        print "not ";
    }
    print "been processed</h1>";
    print "<p>A copy of this message has ";
    if (!$mailed) {