Ich aktualisierte meinen lokalen Server mit XAMPP 1.8.0, die Apache 2.4.2, PHP 5.4.5 und MySQL 5.5 enthält. Ich sende E-Mails mit PHP mail() -Funktion durch Ausführen von MercuryMail, aber keine E-Mails in meinem Posteingang erhalten.
Das Senden von Mails funktioniert, wenn ich mit Mozilla Thunderbird getestet habe. Und die mail() Funktion scheint mit keinem ausgegebenen Fehler zu funktionieren.Keine Post im Posteingang mit XAMPP 1.8.0, MercuryMail und mail()
geprüft I php.ini in meinem XAMPP Installationspfad D: \ xampp \ php. Ich sah dies unter
[mail function]
; XAMPP: Comment out this if you want to work with an SMTP Server like Mercury
; SMTP = localhost
; smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
; sendmail_from = [email protected]
; XAMPP IMPORTANT NOTE (1): If XAMPP is installed in a base directory with spaces (e.g. c:\program filesD:\xampp) fakemail and mailtodisk do not work correctly.
; XAMPP IMPORTANT NOTE (2): In this case please copy the sendmail or mailtodisk folder in your root folder (e.g. C:\sendmail) and use this for sendmail_path.
; XAMPP: Comment out this if you want to work with fakemail for forwarding to your mailbox (sendmail.exe in the sendmail folder)
; sendmail_path = "\"D:\xampp\sendmail\sendmail.exe\" -t"
; XAMPP: Comment out this if you want to work with mailToDisk, It writes all mails in the D:\xampp\mailoutput folder
; sendmail_path = "D:\xampp\mailtodisk\mailtodisk.exe"
Ich zwickte einige Kombination von SMTP-Einstellungen.
bemerkte ich aus Host und Port
; XAMPP: Comment out this if you want to work with an SMTP Server like Mercury
SMTP = localhost
smtp_port = 25
ich aus sendmail_path kommentiert, aber es hat nicht funktioniert. Mail konnte nicht gesendet werden.
; XAMPP: Comment out this if you want to work with fakemail for forwarding to your mailbox (sendmail.exe in the sendmail folder)
sendmail_path = "\"D:\xampp\sendmail\sendmail.exe\" -t"
Wieder bemerkte ich anothor sendmail_path heraus mit mailToDisk arbeiten
; XAMPP: Comment out this if you want to work with mailToDisk, It writes all mails in the D:\xampp\mailoutput folder
sendmail_path = "D:\xampp\mailtodisk\mailtodisk.exe"
Es scheint zu arbeiten, aber keine E-Mail im Posteingang empfangen. Nichts in D gefunden: \ xampp \ mailoutput
In PHP-Mail-Protokoll (D: \ xampp \ php \ logs \ php_mail.log), fand ich mehrere Protokollzeilen, die wahrscheinlich sagen Mails sendeten.
mail() on [D:\xampp\htdocs\....:127]: To: [email protected] -- Headers: MIME-Version: 1.0 Content-type: text/html; charset=text/html Return-Path:Sithu <[email protected]> From: Sithu <[email protected]> Reply-To: Sithu <[email protected]>
mail() on [D:\xampp\htdocs\....:127]: To: [email protected] -- Headers: MIME-Version: 1.0 Content-type: text/html; charset=text/html Return-Path:[email protected] From: [email protected] Reply-To: [email protected]
mail() on [D:\xampp\htdocs\....:127]: To: [email protected] -- Headers: MIME-Version: 1.0 Content-type: text/html; charset=text/html Return-Path:Members <[email protected]> From: Members <[email protected]> Reply-To: Members <[email protected]>
Ich habe auch versucht sendmail_from, aber kein Glück Kommentar aus.
; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = [email protected]
Jede Konfiguration, die ich noch vermisse?
[Bearbeiten]
Mercury Mail-Server läuft.
Immer wenn ich php.ini aktualisierte, startete ich den Apache-Server neu.
Zum Senden von E-Mail-Nachrichten außerhalb müssen Sie in den Mercury-Einstellungen auch "SMTP-Weiterleitung von nicht lokalen E-Mails nicht zulassen" deaktivieren. – Krystian
@Krystian, Danke für Ihre Infos. – Sithu
Ausgezeichnet, thaks dafür. – Magicode