Last active
October 30, 2023 15:55
-
-
Save TrywaR/bde020c390084dca1a7cb6e4689071c9 to your computer and use it in GitHub Desktop.
[ FormFullBleat ] php
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['org']) && $_POST['org'] == '') { | |
if (isset($_POST['email']) && $_POST['email'] != '') { | |
$to = 'email@example.com'; | |
$subject = 'site.com: Обратная связь'; | |
$message = '<p><b>Имя: </b> ' . $_POST['name'] . '</p>'; | |
$message .= '<p><b>Почта: </b> ' . $_POST['email'] . '</p>'; | |
$headers = "MIME-Version: 1.0" . "\r\n" . | |
"Content-type: text/html; charset=UTF-8" . "\r\n"; | |
echo mail($to, $subject, $message, $headers); | |
die(); | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment