Confixx 3
Also ich habe diesen Code , und nur diesen in eine Datei gepackt.
PHP Quellcode:
[LEFT]<?php
$empfaenger = "mspaidmail@gmail.com";
$absendername = "Kontaktformular";
$absendermail = "email@domain.de";
$betreff = "PHP ist toll";
$text = "Hallo Claudia!
$user war gerade auf deinen PHP-Seiten und
wollte dir sagen, dass sie ihm/ihr sehr gut
gefallen.
Wenn du mit ihm/ihr Kontakt aufnehmen
möchtest, benutze bitte die Adresse $usermail.";
mail($empfaenger, $betreff, $text, "From: $absendername <$absendermail>");
?>[/LEFT]
Dieser Code sendet aber keine Mail , warum ? [Blockierte Grafik: http://phpforum.de/forum/images/smilies/frown.gif]
PHP Spuckt kein Eroorr aus.
In der Apache Eroor Log steht nichts.
php.ini ist so :
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
;sendmail_from = me@example.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path = So also habe mal
"/usr/sbin/sendmail -i -t" in die Konsole gehauen , und darauf reagiert der Server nichtmal.