PSD-Tutorials.de
Forum für Design, Fotografie & Bildbearbeitung
Tutkit
Agentur
Hilfe
Kontakt
Start
Forum
Aktuelles
Besonderer Inhalt
Foren durchsuchen
Tutorials
News
Anmelden
Kostenlos registrieren
Aktuelles
Suche
Suche
Nur Titel durchsuchen
Von:
Menü
Anmelden
Kostenlos registrieren
App installieren
Installieren
JavaScript ist deaktiviert. Für eine bessere Darstellung aktiviere bitte JavaScript in deinem Browser, bevor du fortfährst.
Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden.
Du solltest ein Upgrade durchführen oder einen
alternativen Browser
verwenden.
Antworten auf deine Fragen:
Neues Thema erstellen
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
PHP, Javascript, jQuery, Ajax, nodeJS, MySQL...
PHP Mailer funktioniert zwar, aber Bestätigungsseite wird nicht augerufen...
Beitrag
<blockquote data-quote="Andimau" data-source="post: 2424504" data-attributes="member: 521580"><p>Hallo</p><p></p><p>verwende den PHP Mailer, der auch soweit funktioniert. Aber was nicht funktioniert ist, das keine Bestätigungsseite aufgerufen wird, obwohl ich diese im Quelltext angegeben habe.</p><p></p><p>Formular kommt per Email an, aber wie gesagt beim Anklicken des Absende-Button bleibt die Seite..Es kommt gar nix.</p><p>----</p><p><?php</p><p></p><p>// $email and $message are the data that is being</p><p>// posted to this page from our html contact form</p><p></p><p>$email = $_POST['email'] ;</p><p>$name = $_POST['name'] ;</p><p>$subject = $_POST['subject'] ;</p><p>$message = $_POST['message'] ;</p><p></p><p></p><p></p><p>// When we unzipped PHPMailer, it unzipped to</p><p>// public_html/PHPMailer_5.2.0</p><p>require("phpmailer/PHPMailerAutoload.php");</p><p></p><p></p><p>$mail = new PHPMailer();</p><p></p><p>$mail->CharSet = 'utf-8';</p><p></p><p>$mail->SetLanguage ("de");</p><p></p><p>// set mailer to use SMTP</p><p>$mail->IsSMTP();</p><p></p><p>// As this email.php script lives on the same server as our email server</p><p>// we are setting the HOST to localhost</p><p>$mail->Host = "localhost"; // specify main and backup server</p><p></p><p>$mail->SMTPAuth = true; // turn on SMTP authentication</p><p></p><p></p><p>$mail->Username = "<a href="mailto:xx@gmail.com">xx@gmail.com</a>"; // SMTP username</p><p>$mail->Password = "xx"; // SMTP password</p><p>$mail->SMTPSecure = 'ssl'; // secure transfer enabled REQUIRED for GMail</p><p>$mail->Host = 'smtp.gmail.com';</p><p>$mail->Port = 465; </p><p></p><p></p><p>//Absenderadresse der Email setzen</p><p> $mail->From = "<a href="mailto:xxx@gmail.com">xxx@gmail.com</a>";</p><p> //Name des Abenders setzen</p><p> $mail->FromName = "xx";</p><p> //Betreff der Email setzen</p><p> $mail->Subject = "Ihre Konfiguration bei xxx";</p><p></p><p> //Text der EMail setzen</p><p> $mail->Body = "<img src=\"<a href="http://xxx\" target="_blank">http://xxx\</a>"><br><br>Vielen Dank. Sie haben folgende Konfiguration f&uuml;r ihr neues System getroffen:<br><br></p><p>\t<strong>Name:</strong>&nbsp; $name<br> </p><p>\t<strong>subject:</strong>&nbsp; $subject<br> </p><p>\t<strong>Anzahl der benötigten Systeme:</strong>&nbsp; $anzahl<br> </p><p>\t<strong>Testausdruck:</strong>&nbsp; $testausdruck<br> </p><p>\t<strong>Funktionen:</strong>&nbsp; $funktionen<br> </p><p>\t<strong>Druckvolumen:</strong>&nbsp; $druckvolumen<br></p><p>\t<strong>Seitenformat:</strong>&nbsp; $seitenformat<br></p><p>\t<strong>Farbe:</strong>&nbsp; $farbe<br></p><p>\t<strong>Endverarbeitung:</strong>&nbsp; $Endverarbeitung<br></p><p>\t<strong>Service:</strong>&nbsp; $service<br></p><p>\t<strong>Gutschein:</strong>&nbsp; $gutschein<br></p><p>\t<strong>Name:</strong>&nbsp; $name<br></p><p>\t<strong>Ansprechpartner:</strong>&nbsp; $ansprechpartner<br></p><p>\t<strong>Toner,Technikerflatrate:</strong>&nbsp; $flatrate<br></p><p>\t<strong>Email:</strong>&nbsp; $email</br></br></p><p>\t<strong>Nachricht:</strong>&nbsp; $nachricht<br><br><br>";</p><p></p><p></p><p>// below we want to set the email address we will be sending our email to.</p><p>$mail->AddAddress("xx@xxx", "xxx ");</p><p>$mail->AddAddress("$email");</p><p></p><p>// set word wrap to 50 characters</p><p>$mail->WordWrap = 50;</p><p>// set email format to HTML</p><p>$mail->IsHTML(true);</p><p></p><p><strong>if(!$mail->Send())</strong></p><p><strong>{</strong></p><p><strong> $strReturnhtml = '</strong></p><p> </p><p></p><p> exit;</p><p>}</p><p></p><p>echo "Message has been sent";</p><p>print_r( $_POST ); </p><p></p><p></p><p></p><p>?></p></blockquote><p></p>
[QUOTE="Andimau, post: 2424504, member: 521580"] Hallo verwende den PHP Mailer, der auch soweit funktioniert. Aber was nicht funktioniert ist, das keine Bestätigungsseite aufgerufen wird, obwohl ich diese im Quelltext angegeben habe. Formular kommt per Email an, aber wie gesagt beim Anklicken des Absende-Button bleibt die Seite..Es kommt gar nix. ---- <?php // $email and $message are the data that is being // posted to this page from our html contact form $email = $_POST['email'] ; $name = $_POST['name'] ; $subject = $_POST['subject'] ; $message = $_POST['message'] ; // When we unzipped PHPMailer, it unzipped to // public_html/PHPMailer_5.2.0 require("phpmailer/PHPMailerAutoload.php"); $mail = new PHPMailer(); $mail->CharSet = 'utf-8'; $mail->SetLanguage ("de"); // set mailer to use SMTP $mail->IsSMTP(); // As this email.php script lives on the same server as our email server // we are setting the HOST to localhost $mail->Host = "localhost"; // specify main and backup server $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = "[email]xx@gmail.com[/email]"; // SMTP username $mail->Password = "xx"; // SMTP password $mail->SMTPSecure = 'ssl'; // secure transfer enabled REQUIRED for GMail $mail->Host = 'smtp.gmail.com'; $mail->Port = 465; //Absenderadresse der Email setzen $mail->From = "[email]xxx@gmail.com[/email]"; //Name des Abenders setzen $mail->FromName = "xx"; //Betreff der Email setzen $mail->Subject = "Ihre Konfiguration bei xxx"; //Text der EMail setzen $mail->Body = "<img src=\"[url]http://xxx\[/url]"><br><br>Vielen Dank. Sie haben folgende Konfiguration für ihr neues System getroffen:<br><br> \t<strong>Name:</strong> $name<br> \t<strong>subject:</strong> $subject<br> \t<strong>Anzahl der benötigten Systeme:</strong> $anzahl<br> \t<strong>Testausdruck:</strong> $testausdruck<br> \t<strong>Funktionen:</strong> $funktionen<br> \t<strong>Druckvolumen:</strong> $druckvolumen<br> \t<strong>Seitenformat:</strong> $seitenformat<br> \t<strong>Farbe:</strong> $farbe<br> \t<strong>Endverarbeitung:</strong> $Endverarbeitung<br> \t<strong>Service:</strong> $service<br> \t<strong>Gutschein:</strong> $gutschein<br> \t<strong>Name:</strong> $name<br> \t<strong>Ansprechpartner:</strong> $ansprechpartner<br> \t<strong>Toner,Technikerflatrate:</strong> $flatrate<br> \t<strong>Email:</strong> $email</br></br> \t<strong>Nachricht:</strong> $nachricht<br><br><br>"; // below we want to set the email address we will be sending our email to. $mail->AddAddress("xx@xxx", "xxx "); $mail->AddAddress("$email"); // set word wrap to 50 characters $mail->WordWrap = 50; // set email format to HTML $mail->IsHTML(true); [B]if(!$mail->Send()) { $strReturnhtml = '[/B] exit; } echo "Message has been sent"; print_r( $_POST ); ?> [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ★ = 12, ◇ = 4 und die Hälfte von ★ zu ◇ addiert wird, was ist das Ergebnis?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
PHP, Javascript, jQuery, Ajax, nodeJS, MySQL...
PHP Mailer funktioniert zwar, aber Bestätigungsseite wird nicht augerufen...
Oben