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