SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | - | // Contact subject |
2 | + | |
3 | - | $subject = $_REQUEST['subject']; |
3 | + | |
4 | $message = $_REQUEST['detail']; | |
5 | ||
6 | // From | |
7 | $header="from: ".$_REQUEST['name']." <".$_REQUEST['customer_mail'].">"; | |
8 | ||
9 | // Enter your email address | |
10 | $to ='[email protected]'; | |
11 | ||
12 | $send_contact = mail($to, $header, $message, $header); | |
13 | ||
14 | - | $send_contact = mail($to, $subject, $message, $header); |
14 | + | |
15 | if($send_contact){ | |
16 | echo "We've received your contact information"; | |
17 | } | |
18 | else { | |
19 | echo "ERROR"; | |
20 | } | |
21 | ?> |