Skip to content

Instantly share code, notes, and snippets.

@kayintveen
Created January 19, 2013 11:55
Show Gist options
  • Save kayintveen/4572272 to your computer and use it in GitHub Desktop.
Save kayintveen/4572272 to your computer and use it in GitHub Desktop.
Basic email php script
<?php
$message = $_POST['comment'];
$headers = "Content-Type: text/html; charset=iso-8859-1\n";
$headers .= "From: ".$_POST['name']." <".$_POST['email'].">\n";
$headers .= "Reply-to: ".$_POST['name']." <".$_POST['email'].">\n";
$headers .= "\n";
mail('email@domein.nl','onderwerp',$message,$headers);
?>
<script type="text/javascript">
<!--
window.location = "http://www.domein.nl/redirect"
//-->
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment