RJG Email
GPR > GPR-Aktuelles
php
// Wenn die E-Mail-Variable ausgefüllt ist, senden Sie eine E-Mail
if (isset ($ _ REQUEST ['email'])) {
// E-Mail-Informationen
$ admin_email = "jemand@example.com";
$ email = $ _REQUEST ['email'];
$ subject = $ _REQUEST ['subject'];
$ comment = $ _REQUEST ['comment'];
//E-Mail senden
mail ($ admin_email, "$ subject", $ comment, "From:". $ email);
// E-Mail-Antwort
echo "Danke, dass Sie uns kontaktiert haben!";
}
// Wenn die Variable "email" nicht ausgefüllt ist, zeigen Sie das Formular an
sonstiges
?>