| | | | |
| |||||||
| PHP-Fortgeschrittene Arbeiten mit PHP ohne Einschränkungen |
|
| | LinkBack | Themen-Optionen | Thema bewerten |
| | |
| PHP Code Flüsterer Registriert seit: 21.08.2005 Beiträge: 4682 PHP-Kenntnisse: Fortgeschritten | |
| | |
| Gast
Beiträge: n/a
| Hier mal der Code: <?php $pfad = ini_get("include_path"); $pfad .= ";./phpmailer"; ini_set("include_path", $pfad); require("class.phpmailer.php"); $mail = new phpmailer(); $backmail = new phpmailer(); $mail->SetLanguage ("de", "./"); $backmail->SetLanguage ("de", "./"); $mail->IsSMTP(true); $backmail->IsSMTP(true); $mail->Host = "smtp.1und1.de"; $backmail->Host = "smtp.1und1.de"; $mail->SMTPAuth = true; $backmail->SMTPAuth = true; $mail->Username = "..."; //nicht identisch zu dem darunter $backmail->Username = "..."; $mail->Password = "..."; $backmail->Password = "..."; $mail->From = "...@baumschulebutzbach.de"; $backmail->From = "...@baumschulebutzbach.de"; //nicht identisch //Anmerkung: Echte Adresse hat nen Umlaut im Domainnamen. //Aus www.***üller.de wird www.xn--***ller-klb.de ... ASCII?! $mail->FromName = "Baumschule Butzbach Kontaktanfrage"; $backmail->FromName = "Baumschule Butzbach"; $mail->AddAddress("...@baumschulebutzbach.de"); $backmail->AddAddress("$_GET[txt_email]"); //*********************************************** setlocale('LC_TIME', 'de_DE'); $enddatum = '<font face="Verdana" size="-2">Nachricht eingegangen am '.date('d.m.Y').' um '.date('H:i:s').' Uhr.</font>'; $backdatum = '<font face="Verdana" size="-2">Ihre Anfrage vom <u>'.date('d.m.Y').'</u></font>'; //************************************************ $mail->Subject = "Baumschule Butzbach Kontaktanfrage"; $backmail->Subject = "Ihre Anfrage an Baumschule Butzbach"; $mail->IsHTML(true); $backmail->IsHTML(true); //************************************************ $suchen = "\r"; $ersetzen = "\n"; $nachricht_neu = str_replace($suchen,$ersetzen,$_GET[txt_nachricht]); $text = '<font face="Verdana" size="-1"><u>NACHRICHT</u> von der Internetkontaktseite! '.$_GET[txt_name].', hat folgende Anfrage an Baumschule Butzbach: '; $text .= "Name: $_GET[txt_name] "; $text .= "Firma: $_GET[txt_firma] "; $text .= "Straße: $_GET[txt_str] "; $text .= "Ort: $_GET[txt_ort] "; $text .= "Telefon: $_GET[txt_tele] "; $text .= "eMail: $_GET[txt_email] "; $text .= "Nachricht: $nachricht_neu </font>"; $backemailtemp=$_GET[txt_email]; $backmail->AddAddress($backemailtemp); $backtext = '...blabla'; //**************************************** $mail->Body = $text." ".$enddatum; $backmail->Body = $backdatum." ".$backtext; if( ! $mail->Send()) { echo "Fehler beim Mailversand! (1) "; echo "Mailer Error: " . $mail->ErrorInfo; } else echo "Mailversand erfolgreich! (1)"; if( ! $backmail->Send()) { echo "Fehler beim Mailversand! (2) "; echo "Mailer Error: " . $backmail->ErrorInfo; } else echo "Mailversand erfolgreich! (2)"; ?> |
|
|
| Themen-Optionen | |
| Thema bewerten | |
|
|
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| PHPMailer Problem | ochsi | PHP Tipps 2008 | 7 | 08.07.2008 10:34 |
| [Erledigt] Galerie Problem... | coraplanet | PHP Tipps 2008 | 4 | 06.06.2008 13:42 |
| Sessions Problem | StephenKing | PHP Tipps 2008 | 3 | 16.10.2007 08:30 |
| datensätze defekt oder problem mit dem einlesen? | Ministry | Datenbanken | 4 | 06.07.2006 18:42 |
| problem!!! | PHP Tipps 2006 | 6 | 08.02.2006 11:06 | |
| [Erledigt] wieder ein Problem bei phpmailer und smtp | PHP Tipps 2006 | 24 | 07.02.2006 01:07 | |
| [Erledigt] Problem mit Übergabe einer Klasse in PHP4 | PHP-Fortgeschrittene | 10 | 08.01.2005 21:00 | |
| Problem mit Weiterleitung | PHP Tipps 2004-2 | 16 | 22.12.2004 17:49 | |
| Smarty und PHP-Skript Problem | PHP Tipps 2004-2 | 2 | 03.12.2004 22:27 | |
| [Erledigt] PHP Upload (Master Value/Local Value Problem) | PHP-Fortgeschrittene | 5 | 23.11.2004 07:21 | |
| Problem mit phpmailer | PHP Tipps 2004 | 1 | 25.10.2004 18:52 | |
| Problem mit alter JavaScript-Funktion | woods | PHP Tipps 2004 | 1 | 13.08.2004 13:34 |
| [Erledigt] Problem mit Timestamp! | PHP Tipps 2004 | 24 | 08.06.2004 19:51 | |
| Login Problem | PHP Tipps 2004 | 4 | 04.06.2004 18:46 | |
| foreach problem | mAy^daY | PHP Tipps 2004 | 3 | 02.06.2004 20:29 |
| Besucher kamen über folgende Suchanfragen bei Google auf diese Seite |
| phpmailer localhost, phpmailer weiterleitung, phpmailer schriftart, smtp 1und1 phpmailer, http://www.php.de/php-fortgeschrittene/29404-bitte-nicht-hauen-phpmailer-problem.html, phpmailer issmtp 1und1, smtp.1und1.de phpmailer, phpmailer subject umlaute, 1un1 phpmailer, kontaktformular mit phpmailer, 1und1 phpmailer smtp, 1und1 php umlaute, phpmailer 1und1 problem, 1und1 phpmailer, phpmailer 1&1, phpmailer font, \phpmailer\ subject umlaut, 1und1 phpmailer host, phpmail schriftfarbe grösse, 1und1 phpmailer smtp mails erfolgreich versenden |

Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.