PHPMailer neu implementiert
This commit is contained in:
@@ -74,3 +74,14 @@ function darken_color($hex, $darken_amount = 40)
|
||||
|
||||
return '#' . str_pad(dechex($rgb['r']), 2, '0', STR_PAD_LEFT) . str_pad(dechex($rgb['g']), 2, '0', STR_PAD_LEFT) . str_pad(dechex($rgb['b']), 2, '0', STR_PAD_LEFT);
|
||||
}
|
||||
|
||||
//Mail Funktion
|
||||
function send_email_notification($to, $subject, $message)
|
||||
{
|
||||
$headers = 'From: noreply@domili.de' . "\r\n" .
|
||||
'Reply-To: noreply@domili.de' . "\r\n" .
|
||||
'X-Mailer: PHP/' . phpversion() . "\r\n" .
|
||||
'Content-Type: text/plain; charset=UTF-8';
|
||||
|
||||
return mail($to, $subject, $message, $headers);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user