Inhalt anspringen

Kreis Euskirchen

Do you have a question?

So that we can react as fast as possible to your message, complete please our form for contact with your data. We will contact then immediately you. With (*) characterized fields are obligation fields.

<?php
// ****************************************************
// ***** ACHTUNG: Formular für https-Versand !!!! *****
// ***** (nur Verwenden, wenn https existiert !!) *****
// ****************************************************

$message = "";

function is_email($lom_emailstrg)
{
return ereg("^[_a-zA-Z0-9-]+(.[_a-zA-Z0-9-]+)*@([a-zA-Z0-9-]{2,})+(.[_a-zA-Z0-9-]+)*.([a-zA-Z0-9-]{2,4})$", $lom_emailstrg);
}

if ($_POST)
{
$contenttype = "text/plain"; $CRLF = "\n";

// E-Mail des Empfaengers
$email_to = "mailboxkreis-euskirchende";
// E-Mail des Absenders
$email_from = ($_POST["frmMail"]) ? $_POST["frmMail"] : "mailboxkreis-euskirchende";
// Name des Absenders
$name_from = $_POST["frmName"];
// Betreff in der Mail
$subject1 = ($_POST["frmSubject"]) ? $_POST["frmSubject"] : "- Website - Kontaktformular -";
$subject1 = "=?iso-8859-1?Q?".str_replace("+","_",str_replace("%","=",urlencode($subject1)))."?=";
$subject2 = "=?iso-8859-1?Q?".str_replace("+","_",str_replace("%","=",urlencode("Bestätigung des Kreis Euskirchen")))."?=";

$header = "Reply-To: $email_from\n"
. "X-Mailer: PHP/".phpversion()."\n"
. "X-Sender-IP: ".$_SERVER["REMOTE_ADDR"]."\n"
. "Content-Type: ".$contenttype."; charset=\"iso-8859-1\"\n"
. "Content-Transfer-Encoding: quoted-printable\n";

$header1 = "From:"."=?iso-8859-1?Q?".str_replace("+","_",str_replace("%","=",urlencode($name_from)))."?="." <$email_from>\n".$header;
$header2 = "From:"."=?iso-8859-1?Q?".str_replace("+","_",str_replace("%","=",urlencode("Kreis Euskirchen")))."?="." <$email_to>\n".$header;

$emailbody .= $_POST["frmFirstname"]." ";
$emailbody .= $_POST["frmName"].$CRLF;
if ($_POST["frmStreet"]) $emailbody .= $_POST["frmStreet"]." ";

$emailbody .= $_POST["frmNumber"].$CRLF;

if ($_POST["frmZip"]) $emailbody .= $_POST["frmZip"]." ";

$emailbody .= $_POST["frmCity"].$CRLF;

if ($_POST["frmPhone"]) $emailbody .= "Tel.: ".$_POST["frmPhone"].$CRLF;

if ($_POST["frmFax"]) $emailbody .= "Fax: ".$_POST["frmFax"].$CRLF;

$emailbody .= str_repeat("_",25).$CRLF.$CRLF;
$emailbody .= "Your message:".$CRLF.$CRLF;
$emailbody .= $_POST["frmMessage"].$CRLF;

$emailbody2 = "The following message was sent by your email-address to Kreis Euskirchen:"
. $CRLF.$CRLF.$emailbody;

if (!is_email($email_to))
{
$message = '


Uncomplete data !

The Recipients-eMail-address is invalid. The form was not sent.

';
}
else if (!is_email($email_from) || $email_from=="namedomainde")
{
$message = '


Uncomplete data !

The Senders eMail-address is invalid. The form was not sent.

';
}
else if (trim($_POST["frmMessage"])=="")
{
$message = '


Uncomplete data !

A message is needed. The form was not sent.

';
}
else
{
$mailOK1 = mail($email_to,$subject1,$emailbody,$header1);

if ($mailOK1) $mailOK2 = mail($email_from,$subject2,$emailbody2,$header2);

$messageOK = "Your message has been sent succesfully.
"
. "
In order to prevent fraudulent use of emails we are going to send you a confirmation at your email-address.
";

$messageFailed = '


AN ERROR OCCURED !

'
. '
Is was not possible to sent the message.

';

$message = ($mailOK1 && $mailOK2) ? $messageOK : $messageFailed;
}

echo '';
}
?>
<?php if ($_POST) { ?>


<?php if ($mailOK1 && $mailOK2) { ?>
Your data has been sent safety!


You leave the safety mode.


Your Kreis Euskirchen
<?php } else echo $message; ?>

<?php } else if($_GET["action"]=="return") { ?>

<?php echo stripSlashes(urldecode($_GET["message"])) ?>

<?php } else { ?>





Persönliche Informationen








































Allgemeine Informationen








<?php } ?>

Durch die Nutzung dieser Website erklären Sie sich damit einverstanden, dass diese Seite Cookies verwendet.