Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HTML e-mail with PHP
- mail( "theresa.pert@me.com", "VoH Online Enquiry",
- "Name: $name.</p>, Telephone Number: $telephone, Tour Date: $date, No in Party: $party, Message: $message","From: $email");
- <?php
- $email = $_REQUEST['email'] ;
- $name = $_REQUEST['name'] ;
- $telephone = $_REQUEST['telephone'] ;
- $date = $_REQUEST['date'] ;
- $party = $_REQUEST['party'] ;
- $message = $_REQUEST['message'] ;
- if (!isset($_REQUEST['email'])) {
- header( "Location: ../contact.shtml" );
- }
- elseif (empty($email) || empty($message)) {
- header( "Location: ../contact-error.shtml" );
- }
- else {
- mail( "theresa.pert@me.com", "VoH Online Enquiry",
- "Name: <p>$name</p> <p>Telephone Number: $telephone</p> <p>Tour Date: $date</p> <p>No in Party: $party</p><p>Message: $message</p>","From: $email");
- header( "Location: ../contact-thankyou.shtml" );
- }
- ?>
- $headers = "Reply-To: .... <mail@blabla.blabla>rn";
- $headers .= "Return-Path: .... <mail@blabla.blabla>rn";
- $headers .= "From: .... <mail@blabla.blabla>rn";
- $headers .= "Organization: .... <mail@blabla.blabla>rn";
- $headers .= "Content-Type: text/htmlrn";
- mail($email, $object, $text, $headers);
Add Comment
Please, Sign In to add comment