@,;:\\".[\]\x7f-\xff]+(?:\.[^\x00-\x20()<>@,;:\\".[\]\x7f-\xff]+)*\@[^\x00-\x20()<>@,;:\\".[\]\x7f-\xff]+(?:\.[^\x00-\x20()<>@,;:\\".[\]\x7f-\xff]+)+$/i', $email)) { $ergebnis="OK"; } else { $ergebnis="NOK"; } return $ergebnis; } //================================================================= function sendeMail($sender,$sendername,$empfaenger,$emailkopf,$emailfuss,$betreff,$nachricht,$prefix,$testMode) { if ($empfaenger != "noreply@flexx-control.de") { $abfrage = mysql_query("SELECT * FROM ".$prefix."_parameter WHERE name='maillogo'"); if (mysql_num_rows($abfrage)) { while($row=mysql_fetch_array($abfrage)) { $link=$row['wert']; }} # Logo ausgebaut if ($emailkopf == "") $emailkopf.=""; if ($emailkopf == "") $emailkopf.=""; if ($emailfuss == "") $emailfuss.=""; $nachrichttext=$nachricht."\n\n".$emailfuss; $nachrichttext=str_replace("
","\n",$nachrichttext); $nachrichttext=str_replace("
","\n",$nachrichttext); $nachrichttext=str_replace("
","\n",$nachrichttext); $nachrichttext=str_replace("","\n",$nachrichttext); $nachrichttext=str_replace("","\n",$nachrichttext); $nachrichttext=str_replace("","\n",$nachrichttext); $nachrichttext=strip_tags($nachrichttext); $nachrichthtml=$emailkopf."".$nachricht."".$emailfuss; $nachrichthtml=wordwrap($nachrichthtml, 50, "\n"); $mime_boundary = 'Multipart_Boundary_x'.md5(time()).'x'; $headers = "X-Mailer: boomaker (fey_lib) - Profi-Mailer\n"; $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-Type: multipart/alternative; boundary=\"$mime_boundary\"\n"; $headers .= "Content-Transfer-Encoding: 7bit\n"; $body = "This is a multi-part message in mime format.\n\n"; $body .= "--$mime_boundary\n"; $body .= "Content-Type: text/plain; charset=\"iso-8859-1\"\n"; $body .= "Content-Transfer-Encoding: 7bit\n\n"; $body .= $nachrichttext; $body .= "\n\n"; $body .= "--$mime_boundary\n"; $body .= "Content-Type: text/html; charset=\"iso-8859-1\"\n"; $body .= "Content-Transfer-Encoding: 7bit\n\n"; $body .= $nachrichthtml; $body .= "\n\n"; $body .= "--$mime_boundary--\n"; # <-- Notice trailing --, required to close email body for mime's $headers .= "From: $sender\n"; $headers .= "Sender: $sender\n"; // $headers .= 'Date: '.date('n/d/Y g:i A')."\n"; if ($testMode == 0) mail($empfaenger, $betreff, $body, $headers); else { mail("debug_flexx@feyn.de", "TestMode ist an - ".$betreff, $body, $headers); } } } //================================================================= ?>