Bildergalerie Hotel Solaria Email
 
 
 

'; if (trim($from_mail) == '') $err_text .= GetLngStr('PostErrNoMailAddr').'
'; else if (!preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,6})$/i', $from_mail)) $err_text .= GetLngStr('PostErrInvalidMailAddr').'
'; if (trim($mail_subject) == '') $err_text .= GetLngStr('PostErrNoSubj').'
'; if (trim($mail_text) == '') $err_text .= GetLngStr('PostErrNoText').'
'; } // *** Zu langen Text abschneiden *** if (strlen($mail_text) > 10000) { $mail_text = substr($mail_text, 0, 10000).GetLngStr('TextCutMark'); } $from_name = str_replace(chr(34), "''", $from_name); $mail_subject = str_replace(chr(34), "''", $mail_subject); $from_name = stripslashes($from_name); $from_mail = stripslashes($from_mail); $mail_subject = stripslashes($mail_subject); $mail_text = stripslashes($mail_text); if (($send == '1') && ($err_text != '')) { echo '

'.GetLngStr('PostError').'
'; echo ''.$err_text.'

'; } if (($send != '1') || ($err_text != '')) { ?>
 
 
\n"; $header .= "Reply-To: $from_mail\n"; $header .= "X-Mailer: PHP-ContactForm-Script\n"; $header .= "Content-Type: text/plain"; $mail_date = gmdate('D, d M Y H:i:s').' +0000'; $send = 0; if (@mail($RecipientAddress, $mail_subject, $mail_text, $header)) { echo '

'.GetLngStr('ResultSuccess').'

'; echo '

'.GetLngStr('BackToForm').'

'; } else { echo '

'.GetLngStr('ResultError').'

'; echo '

'.GetLngStr('BackToForm').'

'; } } echo 'XXXXXXXXXXXXXXXXXXXXXXXXX'; // ############################################################################# function GetParam($ParamName, $Method = 'P', $DefaultValue = '') { if ($Method == 'P') { if (isset($_POST[$ParamName])) return $_POST[$ParamName]; else return $DefaultValue; } else if ($Method == 'G') { if (isset($_GET[$ParamName])) return $_GET[$ParamName]; else return $DefaultValue; } else if ($Method == 'S') { if (isset($_SERVER[$ParamName])) return $_SERVER[$ParamName]; else return $DefaultValue; } else if ($Method == 'Z') { if (isset($_SESSION[$ParamName])) return $_SESSION[$ParamName]; else return $DefaultValue; } } // ############################################################################# function GetLngStr($sId, $sParams = '') { global $Lang; if (isset($Lang[$sId])) $sResult = $Lang[$sId]; else $sResult = '{Missing string "'.$sId.'"}'; $aParams = explode("\t", $sParams); for ($i = 0; $i < count($aParams); $i++) { $sResult = str_replace('%s'.($i + 1).'%', $aParams[$i], $sResult); } return $sResult; } // ############################################################################# ?>
Ihr Name: 
Ihre Mail-Adresse:
Betreff:
Text:
(max. 1.000 Zeichen,
keine HTML-Tags)