Jump to content

Swayamjit

New Members
  • Posts

    1
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Swayamjit's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. <?php $name = $_POST['name']; $email = $_POST['email']; $contact = $_POST['contact']; $subject = $_POST['subject']; $message = $_POST['message']; ini_set( 'display_errors', 1 ); error_reporting( E_ALL ); $to = "xyz@gmail.com"; $subject = "Enquiry Through Website"; $headers = 'From: XYZ <info@xyz.com>' . PHP_EOL . 'Reply-To: XYZ <info@xyz.com>' . PHP_EOL . 'X-Mailer: PHP/' . phpversion(); $email_body = "Full Name: " . $name . "\r\n" . "Email ID: " . $email . "\r\n" . "Contact Number: " . $contact . "\r\n" . "Subject: " . $subject . "\r\n" . "Message: " . $message ; mail($to,$subject,$email_body, $headers); header("Location:thankyou.html"); ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.