| | | | |
| | |
| Gast
Beiträge: n/a
| Hallo. Habe folgendes Problem. Ich möchte gerne ein Formular haben, das an eine bestimmte E-Mail-Adresse gesendet wird. Ich habe das mal auf meinem Rechner probiert. Also lokal, benutze einen „wamp“. Hier sind meine 2 Skript die ich dazu verwende: // formular.html <html> <head> </head> <body> <form method="post" action="sendmail.php"> Ihr Name: <input type="text" name="name" size="30" maxlength="25"> <input type="submit" value="OK"> </form> </body> </html> // sendmail.php <?php $nachricht = "Guten Tag " . $name . ",\n" ; $kopf = "From: \"PHP-Test\" <nix@nix.de>" ; mail("alex861@freent.de", $nachricht, $kopf) ; ?> <html> <head> </head> <body> <h2>Die E-Mail wurde verschickt.</h2> zurück </body> </html> Wenn ich dieses Skript anlaufen lasse, bekomme ich folgende Meldung: Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wampp2c\htdocs\Testordner\Mail\mail_it\sendmail .php on line 9 Die E-Mail wurde verschickt. Zurück Kann mir mal bitte jemand helfen. Danke im voraus. Alexander |
| | |
| PHP Code Flüsterer Registriert seit: 21.08.2005 Beiträge: 4682 PHP-Kenntnisse: Fortgeschritten | |
| Themen-Optionen | |
| Thema bewerten | |
|
|
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Problem mit mail() | Blue-Dragon | PHP Tipps 2008 | 17 | 05.07.2008 22:09 |
| [Erledigt] problem keine ausgabe | coraplanet | PHP Tipps 2008 | 12 | 02.05.2008 18:51 |
| Mail problem | Marian | PHP Tipps 2005-2 | 11 | 27.09.2005 18:15 |
| mail(); + Array = Problem | PHP Tipps 2005-2 | 5 | 15.08.2005 16:45 | |
| mail von lokalem Server an SMTP im Netz -after_pop- Problem | PHP-Fortgeschrittene | 7 | 12.08.2005 14:40 | |
| Problem ! Mail mit PHP vom Freenet-Server | pit62 | PHP Tipps 2005 | 3 | 09.02.2005 09:22 |
| Problem mit mail datei im mbox fomat | PHP-Fortgeschrittene | 3 | 08.02.2005 15:24 | |
| [Erledigt] Problem bei Massenmails versenden mit der Funktion mail | PHP-Fortgeschrittene | 3 | 19.01.2005 13:36 | |
| Problem mit dem mail() | PHP Tipps 2005 | 10 | 18.01.2005 21:13 | |
| mail() problem | Trumpfass | PHP Tipps 2004-2 | 3 | 20.12.2004 20:07 |
| mail() Problem mit emailadresse mit "-" [gelöst] | wishy | PHP Tipps 2004-2 | 2 | 15.12.2004 11:36 |
| Mail Problem | PHP Tipps 2004-2 | 3 | 13.12.2004 22:43 | |
| Problem mit Formular + Mail To+ PHP-Seiten weiterleitung | HTML, Usability und Barrierefreiheit | 3 | 27.08.2004 11:06 | |
| Problem mit Mail | PHP Tipps 2004 | 15 | 02.08.2004 22:55 | |
| mail() - problem | PHP Tipps 2004 | 2 | 12.07.2004 00:17 | |

Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.