Das funktioniert leider nicht, sobald ich das einfüge leitet er nicht weiter, derzeit sieht es bei mir so aus:
PHP
<?php
if (isset($_POST['name'])) {
$html = "<html>
<body>
<img src="https://abload.de/img/abloadjhsio.png"></img>
</body>
</html>";
$text .= "Name: " . $_POST['name'] . "\n";
$text .= "eMail: " . $_POST['email'] . "\n";
$text .= "Rang: " . $_POST['rang'] . "\n";
$text .= "Nachricht: " . $_POST['nachricht'] . "\n";
include ("PHPMailerAutoload.php");
$mail = new PHPMailer();
$mail->Host = "smtp.gmail.com"; // Dein SMTP-Server
$mail->SMTPAuth = true; // Authentifizierung aktivieren
$mail->Port = 465; // SMTP-Port
$mail->SMTPSecure = 'ssl';
$mail->IsHTML(true); // HTML-Mail aktivieren
$mail->From = "#################"; // Deine eMail-Adresse
$mail->FromName = "Neue Bewerbung"; // Dein Name
$mail->Username = "#############"; // SMTP-Username
$mail->Password = "#############"; // SMTP-Passwort
$mail->Subject = "Neue Bewerbung"; // Betreff
$mail->AddAddress("############"); // Empfänger
$mail->msgHTML($html); // HTML-Inhalt
$mail->AltBody = $text; // Alternativer Text-Inhalt
if (!$mail->send())
echo "Mailer Error: " . $mail->ErrorInfo;
else
echo "Message sent!";
}
?>
Alles anzeigen