isSendmail(); $mail->CharSet = 'utf-8'; //Enable SMTP debugging // 0 = off (for production use) // 1 = client messages // 2 = client and server messages $mail->SMTPDebug = 2; //Ask for HTML-friendly debug output $mail->Debugoutput = 'html'; //Set the hostname of the mail server $mail->Host = 'atmanspacher.eu'; // use // $mail->Host = gethostbyname('smtp.gmail.com'); // if your network does not support SMTP over IPv6 //Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission $mail->Port = 465; //Set the encryption system to use - ssl (deprecated) or tls $mail->SMTPSecure = 'tls'; //Whether to use SMTP authentication $mail->SMTPAuth = true; //Username to use for SMTP authentication - use full email address for gmail //$mail->Username = "peacepoint1@gmail.com"; //Password to use for SMTP authentication //$mail->Password = "Fredxtz4488"; $mail->setFrom($_POST["femail"], 'Neue Nachricht von - '. $_POST["fvorname"] .' '. $_POST["fnachname"] .''); $mail->addReplyTo($_POST["femail"], 'SYSTEM DEMOCRACY - '. $_POST["fvorname"] .' '. $_POST["fnachname"] .''); $mail->addAddress($mailFROM, $_POST["fvorname"] .' '. $_POST["fnachname"]); $datum = date("d.m.Y"); $uhrzeit = date("H:i"); $html ='
abegesendet : '. $datum .' - '. $uhrzeit .'
';
$html .='
';
$html .='
| vorname: | '; $html.=''. $_POST["fvorname"] .' | ';
$html.='
| nachname: | '; $html.=''. $_POST["fnachname"] .' | ';
$html.='
| email: | '; $html.=''. $_POST["femail"] .' | '; $html.='
| UI-Designer: | '; $html.=''; if( isset($_POST["UI-Designer"]) ) { $html.= $_POST["UI-Designer"]; } else { $html.= ' - '; } $html.=' | '; $html.='
| Front-End-Prog: | '; $html.=''; if( isset($_POST["Front-End-Prog"]) ) { $html.= $_POST["Front-End-Prog"]; } else { $html.= ' - '; } $html.=' | '; $html.='
| Back-End-Prog: | '; $html.=''; if( isset($_POST["Back-End-Prog"]) ) { $html.= $_POST["Back-End-Prog"]; } else { $html.= ' - '; } $html.=' | '; $html.='
| Kryptolog: | '; $html.=''; if( isset($_POST["Kryptolog"]) ) { $html.= $_POST["Kryptolog"]; } else { $html.= ' - '; } $html.=' | '; $html.='
| Fragenredakteur: | '; $html.=''; if( isset($_POST["Fragenredakteur"]) ) { $html.= $_POST["Fragenredakteur"]; } else { $html.= ' - '; } $html.=' | '; $html.='
| Marketingstrateg: | '; $html.=''; if( isset($_POST["Marketingstrateg"]) ) { $html.= $_POST["Marketingstrateg"]; } else { $html.= ' - '; } $html.=' | '; $html.='
| Botschafter: | '; $html.=''; if( isset($_POST["Botschafter"]) ) { $html.= $_POST["Botschafter"]; } else { $html.= ' - '; } $html.=' | '; $html.='
| sonstiges: | '; $html.=''; if( isset($_POST["sonstiges"]) ) { $html.= $_POST["sonstiges"]; } else { $html.= ' - '; } $html.=' | '; $html.='
| Text: | '; $html.=''. $_POST["text"] .' | '; $html.='