예제 #1
0
파일: output.php 프로젝트: skerbis/do-form
 $Body = $form_template_html . nl2br($mailbodyhtml) . $form_template_html_footer;
 $To = "REX_VALUE[1]";
 $from = $From = "REX_VALUE[1]";
 // E-Mail
 $mail = new rex_mailer();
 // Mailer initialisieren
 $mail->CharSet = 'UTF-8';
 // Zeichensatz
 $mail->AddAddress($To);
 // Empfänger
 if ($absendermail != '') {
     $mail->AddReplyTo($absendermail);
     // Antwort an Absender per Reply-To -  Besucher
 }
 if ($form_bcc != '') {
     $mail->AddBCC($form_bcc);
 }
 // Wenn true Daten aus do form! , wenn false aus PHPMailer
 if ($form_from_mode == true) {
     $mail->From = $From;
     $mail->Sender = $from;
     //Absenderadresse als Return-Path
     $mail->FromName = $from;
     // Abdendername entspricht Empfängeradresse
 }
 // Betreff ermitteln
 if ($sselect != "") {
     $mail->Subject = $sselect . "REX_VALUE[4]";
     // Betreff subjectselect
 } else {
     $mail->Subject = $subject;