Page 1 of 1

Mail aus PHP-Formular mit qmail (SuSE 8.1, Apache 1.3.26, PH

Posted: 2004-09-01 16:42
by bockelmaenner
Hallo,

will den Mailversand aus einem PHP-Formular testen. Ich bekomme aber in der /var/log/qmail/current folgende Meldung
  • @400000004135d6b53224d86c new msg 4866177
    @400000004135d6b53224f3c4 info msg 4866177: bytes 352 from <anonymous@2value.de> qp 18221 uid 504
    @400000004135d6b53a17b24c end msg 4866177
In der php.ini ist der sendmail_path auskommentiert. Der Link auf sendmail ist gesetzt (sonst würde ja bei qmail wohl auch nichts ankommen).

Any idea?

Re: Mail aus PHP-Formular mit qmail (SuSE 8.1, Apache 1.3.26, PH

Posted: 2004-09-01 17:10
by suntzu
Hi,

und was ist jetzt die Frage? Die Mail kommt nicht an oder was?

Re: Mail aus PHP-Formular mit qmail (SuSE 8.1, Apache 1.3.26, PH

Posted: 2004-09-01 17:28
by bockelmaenner
Ups, sorry.

Ja, die Mail wird nicht verschickt, bzw. kommt nicht an. Im Log steht ist ja auch kein entsprechender 'success'-Eintrag vorhanden.

Re: Mail aus PHP-Formular mit qmail (SuSE 8.1, Apache 1.3.26, PH

Posted: 2004-09-01 17:30
by suntzu
Was ist denn mit Mails, die von der Kommandozeile aus verschickt werden? Kommen die an? Wenn nein, dann liegt das problem in der Mailkonfiguration und hat nix mit PHP zu tun.

Re: Mail aus PHP-Formular mit qmail (SuSE 8.1, Apache 1.3.26, PH

Posted: 2004-09-01 17:44
by bockelmaenner
Sorry, bin auf dem Gebiet von qmail noch 'Grrenhorn'. Wie muß den die Kommandozeile aussehen.

Dake.

Re: Mail aus PHP-Formular mit qmail (SuSE 8.1, Apache 1.3.26, PH

Posted: 2004-09-01 18:07
by suntzu

Code: Select all

echo "Testinhalt" | mail -s "Testsubject" empfaenger@domain.de

Re: Mail aus PHP-Formular mit qmail (SuSE 8.1, Apache 1.3.26, PH

Posted: 2004-09-01 19:28
by bockelmaenner
Danke, das klappt ausgezeichnet. Scheint also tatsächlich ein PHP-Problem zu sein.

Re: Mail aus PHP-Formular mit qmail (SuSE 8.1, Apache 1.3.26, PH

Posted: 2004-09-01 19:32
by suntzu
OK,

dann also mal alles der Reihe nach:
- Was sagen die sendmail-Variablen in der phpinfo()
- Was gibt die mail()-Funktion für einen Rückgabewert
- Wie sieht der genaue Aufruf im PHP-Skript aus

Re: Mail aus PHP-Formular mit qmail (SuSE 8.1, Apache 1.3.26, PH

Posted: 2004-09-01 22:51
by bockelmaenner
Sorry for delayed answer

Nun die Facts:
phpinfo()
- sendmail_from no value no value
- sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
- Path to sendmail /usr/sbin/sendmail -t -i

Aufruf in PHP-Script
mail($admin, $subject, $message, "From: $email");