Skip to content

Instantly share code, notes, and snippets.

@TrywaR
Last active October 30, 2023 15:55
Show Gist options
  • Save TrywaR/bde020c390084dca1a7cb6e4689071c9 to your computer and use it in GitHub Desktop.
Save TrywaR/bde020c390084dca1a7cb6e4689071c9 to your computer and use it in GitHub Desktop.
[ FormFullBleat ] php
<?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