Skip to content

Instantly share code, notes, and snippets.

@kevinholler
Created March 15, 2012 20:24
Show Gist options
  • Save kevinholler/2046665 to your computer and use it in GitHub Desktop.
Save kevinholler/2046665 to your computer and use it in GitHub Desktop.
<?php
$email = $_POST['email'];
$message = $_POST['message'];
mail("kholler@engineyard.com", "Email Subject", $message, "From: $email");
?>
<form method="post" action="index.php">
Email: <input name="email" type="text" />
Message:
<textarea name="message" rows="10" cols="30">
</textarea>
<input type="submit" />
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment