Created
November 20, 2019 15:03
-
-
Save tete2soja/e0ca75a71b097f9bc2b91a860b795d4d to your computer and use it in GitHub Desktop.
This file contains 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 | |
if(isset($_POST['name'])) { | |
$name = $_POST['name']; | |
$replyto = $_POST['replyTo']; | |
$message = $_POST['message']; | |
$to = 'zkw48824@zzrgg.com'; | |
$subject = 'My Subject'; | |
// Set SMTP headers | |
$headers = "From: $name \n" . | |
"Reply-To: $replyto"; | |
echo var_dump(mail($to, $subject, $message, $headers)); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment