This commit is contained in:
admin
2021-05-09 18:10:53 +02:00
parent a846fe2fa7
commit 57421ead5e
10 changed files with 791 additions and 0 deletions

17
mail.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
function send_mail($an, $betreff, $text, $ok = '', $error = '')
{
$header = 'From: noreply@isleofhope.de' . "\r\n";
$header .= 'To: ' . $an . "\r\n";
$header .= 'Content-Type:text/html' . "\r\n";
$header .= 'Content-Transfer-Encoding: 8bit' . "\r\n";
$header .= 'X-Mailer: PHP/' . phpversion();
if (mail($an, $betreff, $text, $header) === true) {
echo $ok;
} else {
echo $error;
}
}