Von: '.htmlentities($absender).', '.$email."

". '

Telefon: '.$_POST['telefon']."

". htmlentities($notiz)."

"; empty($_POST['betreff']) ? $betreff = 'Anfrage vom Kontaktformular' : $betreff = $_POST['betreff']; $telefon = $_POST['telefon']; if(!empty($error)) { include 'content/kontakt.php'; } else { $mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch $mail->IsSMTP(); // telling the class to use SMTP try { $mail->Host = "mail.zeiss-miserre.de"; // SMTP server // $mail->SMTPDebug = 2; // enables SMTP debug information (for testing) $mail->SMTPAuth = true; // enable SMTP authentication $mail->Host = "mail.zeiss-miserre.de"; $mail->Port = 25; // set the SMTP port for the GMAIL server $mail->Username = "kontaktformular@zeiss-miserre.de"; // SMTP account username $mail->Password = "Colts1#maure"; // SMTP account password // $mail->AddReplyTo('kontaktformular@zeiss-miserre.de', 'Charlotte Zeiss-Miserre'); $mail->AddAddress('kontaktformular@zeiss-miserre.de', 'Charlotte Zeiss-Miserre'); $mail->SetFrom($email, $absender); // $mail->AddReplyTo('name@yourdomain.com', 'First Last'); $mail->Subject = $betreff; // $mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically // $mail->MsgHTML(file_get_contents('contents.html')); $mail->MsgHTML($notiz); /* $mail->AddAttachment('images/phpmailer.gif'); // attachment $mail->AddAttachment('images/phpmailer_mini.gif'); // attachment*/ $mail->Send(); include 'content/danke.php'; } catch (phpmailerException $e) { echo $e->errorMessage(); //Pretty error messages from PHPMailer } catch (Exception $e) { echo $e->getMessage(); //Boring error messages from anything else! } } } else { include 'content/kontakt.php'; } ?>