Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- +$from = "thijmenpeters.99@gmail.com";
- +$to = "thijmenpeters.99@gmail.com";
- +$name = Trim(stripslashes($_POST['name']));
- +$email = Trim(stripslashes($_POST['email']));
- +$message = Trim(stripslashes($_POST['message']));
- +$promo = Trim(stripslashes($_POST['promo']));
- +
- +$body ="";
- +$body .="Name: ";
- +$body .=$name;
- +$body .="\n";
- +$body .="Email: ";
- +$body .=$email;
- +$body .="\n";
- +$body .="Message: ";
- +$body .=$message;
- +$body .="\n";
- +$body .="Promo accepted? ";
- +$body .=$promo;
- +$body .="\n";
- +
- +
- +$go = mail($to, $subject, $body, "From:<$from>");
- +
- +if($go){
- + print("Success!");
- +}
- +else{
- + print("Unable to send!!");
- +}
- +
- +
- +?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement