why php mail function not work in xampp
I got it . i set this config and now i can recieve my sent email in outlook:
I just need to configure
D:\xampp\sendmail\sendmail.ini
By default, it contains the line
smtp_server=mail.mydomain.com
I had to change it to
smtp_server=localhost
No need to configure this in the older versions of XAMPP.
The correct configuration for [mail function] in
D:\xampp\php\php.ini
is
; XAMPP: Comment out this if you want to work with an SMTP Server like Mercury
SMTP = 127.0.0.1 smtp_port = 25
; 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"
Now, I'm receiving mails in my inbox. Please note that "D:\xampp\" is my XAMPP installation path.
Thanks to all friends
Good Boy
Updated on July 09, 2022Comments
-
Good Boy almost 2 years
I have problem i use xampp . i want check mail form but i can't see any result . i config Mercury/32 like this tutorial in this site :
http://system66.blogspot.com/2010/01/how-to-send-mail-from-localhost-with.html
i check email by outlook it's work . i check send mail by Mercury send mail in admin panel and it's correctly work .
but i can't send email and can not recive this email by outlook when i use mail php function .
why ?
please help me
-
Si8 over 10 yearsWe use Outlook for email client. So just get the outlook information and plug it in. Correct?