Hi
I am unable to send mail from localhost. I am using cmd as of now to check this and getting thr following error
C:\xampp\sendmail>sendmail to myemail@gmail.com body hi
sendmail: cannot connect to localhost, port 25: Connection refused
sendmail: could not send mail (account default from C:\xampp\sendmail\sendmail.i
ni)
My php.ini seems to be good and the related line are as follows
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = postmaster@localhost
;sendmail_from = postmaster@localhost
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
;sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
Thanks & Regards
Gauri