Skip to content

Instantly share code, notes, and snippets.

@mushfiqur-rahman
Created November 23, 2017 08:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mushfiqur-rahman/00f83c8b255619d089779fc6dd179251 to your computer and use it in GitHub Desktop.
Save mushfiqur-rahman/00f83c8b255619d089779fc6dd179251 to your computer and use it in GitHub Desktop.
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$subject = $_POST['subject'];
$message = $_POST['message'];
$formcontent=" From: $name \n subject: $subject \n Message: $message";
$recipient = "admin@softitbd.com";
$subject = "Add Your Subject Here";
$mailheader = "From: $email \r\n";
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
header("location: thank-you.html")
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment