Created
July 1, 2016 16:37
-
-
Save rserna2010/ec9d07c594e9ab0080d953b4b98c4d33 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$to = '[email protected]'; | |
$subject = 'personal website'; | |
$name = $_GET['fullname']; | |
$email = $_GET['email']; | |
$message = $_GET['message']; | |
$message = <<<EMAIL | |
Name: $name | |
Email: $email | |
Message: $message | |
EMAIL; | |
$header = '$email'; | |
if($_GET){ | |
mail($to, $subject, $message, $header) | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment