amoneo
Goto Top

Sendmail unter XAMPP und Windows einrichten

Hallo liebe Admins!

Vor etwa einem halben Jahr habe ich den XAMPP auf meinem Windows-System installiert. Nun bin ich vom Joomlasystem auf folgendes aufmerksam gemacht worden: Mail-Funktion konnte nicht initialisiert werden!
Ich hab nun unzählige Seiten und Versuceh durch ... eigentlich fast jede erdenkliche Konfiguration. Aber immer wieder kommt eine Fehlermeldung.
Auch die Portfreigabe habe ich kontrolliert. SMTP an 25 ist der Server-IP unter TCP frei.

Ihr habt hoffentlich DEN TIPP für mich, der mich vor weiteren schlaflosen Nächten bewahrt.

Ohen diese Funktion können die User die sich bei mir anmelden ja nicht freischalten (oder freischalten lassen)


kompletter Inhalt der sendmail.ini:
*
[sendmail]

; you must change mail.mydomain.com to your smtp server

;smtp_server=

; the default domain for this server will be read from the registry
; this will be appended to email addresses when one isn't provided
; if you want to override the value in the registry, uncomment and modify

default_domain=meinedomain.de

; log smtp errors to error.log (defaults to same directory as sendmail.exe)
; uncomment to enable logging

error_logfile=error.log

; create debug log as debug.log (defaults to same directory as sendmail.exe)
; uncomment to enable debugging

;debug_logfile=debug.log

; if your smtp server requires authentication, modify the following two lines

; auth_username=username
; auth_password=password

; if your smtp server uses pop3 before smtp authentication, modify the
; following three lines

; pop3_server=
; pop3_username=
; pop3_password=

; to force the sender to always be the following email address, uncomment and
; populate with a valid email address. this will only affect the "MAIL FROM"
; command, it won't modify the "From: " header of the message content

;force_sender=account@meinedomain.de

; sendmail will use your hostname and your default_domain in the ehlo/helo
; smtp greeting. you can manually set the ehlo/helo name if required

;hostname=localhost


Auszug aus der
php.ini:
*
[mail function]
; For Win32 only.
; http://php.net/smtp
; SMTP =
; http://php.net/smtp-port
smtp_port 25=

; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = postmaster@localhost

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = "..\sendmail\sendmail.exe\" -t"


Mein Joomla-System bietet alternativ zu Sendmail auch die Funktion "PHPMail-Funktion" an. Worin besteht da eigentlich der wirkliche Unterschied und wie richtet man diesen PHP-Mailer ein ?


Die aktuelle Systemkonfiguration:
**
Windows Vista
XAMPP Ver. 1.7.3
Apache 2.2.14
PHP 5.3.1
MySQL 5.1.41
Kommentar vom Moderator masterG am Sep 22, 2010 um 12:22:04 Uhr
verschoben nach Server

Content-Key: 151040

Url: https://administrator.de/contentid/151040

Printed on: April 16, 2024 at 06:04 o'clock

Member: rufusalex
rufusalex Sep 14, 2010 at 15:44:16 (UTC)
Goto Top
du musst hier deinen mailserver angeben ;smtp_server=
Member: Amoneo
Amoneo Sep 14, 2010 at 15:52:00 (UTC)
Goto Top
Hab ich schon probiert. weder der Smtp-Server noch die Angabe "localhost" führt hier zum Ergebnis!
Member: rufusalex
rufusalex Sep 14, 2010 at 16:16:14 (UTC)
Goto Top
apache auch neu gestartet und dann in der phpinfo() nachgeschaut ob der eintrag korrekt ist.
Member: Amoneo
Amoneo Sep 14, 2010 at 16:23:34 (UTC)
Goto Top
Wie kann ich denn testen, ob die Einstellungen korrekt sind ?
Member: EvilMoe
EvilMoe Sep 14, 2010 at 18:26:31 (UTC)
Goto Top
Mail Funktion ist nicht vorhanden oder du kannst keine Mails verschicken?
Bei XAMPP ist es mit sendmail nur möglich E-Mails Lokal zu versenden.
Member: Amoneo
Amoneo Sep 15, 2010 at 06:58:09 (UTC)
Goto Top
Der Fehler ist behoben!

Es lag daran das die sendmail.ini bei mir zwei mal vorhanden war. Einmal aus der Vorgängerversion und einmal aus der aktuellen Version. Der Unterschied hier liegt nicht in den Angaben, sondern in der Datei selbst.
Die neue Version ist nach Accounts aufgebaut... also Mceruy, oder ext. Mailserver... man kann hier auch beliebig viele sog. "Accoutns" erstellen. Das war in der alten Fassung nicht möglich. Dort MUSSTE nur einer eingetragen werden.

Aus welchen gründen auch immer, hatte ich die alte Fassung für die aktuelle gehalten. Daher wurden hier wohl falsche Prameter eingetragen oder gar nicht erst erfasst.

Auf jeden Fall läuft es jetzt!

Vielen Dank für die Unterstützung!