.
This commit is contained in:
17
mail.php
Normal file
17
mail.php
Normal 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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user