Moved php from cgi-bin to backend

This commit is contained in:
Oleg Sh
2024-10-10 20:17:45 +02:00
parent aac9da9d45
commit 1576a1c6e4
24 changed files with 100 additions and 100 deletions

21
backend/sendEmail.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
/*
Sample page
*/
$mymail = "soft_support@list.ru";
header('Content-type: text/html; charset=utf-8');
$text = "New Algorithm!\n" . $_GET["text"];
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/plain; charset=utf-8' . "\r\n";
$headers .= "From: support@graphonline.ru \r\n";
echo ($headers);
echo ($text);
mail($mymail, "New algorithm", $text, $headers);
?>