sendmail: cannot connect to localhost, port 25: Connection

Problems with the Windows version of XAMPP, questions, comments, and anything related.

sendmail: cannot connect to localhost, port 25: Connection

Postby gauri_agr » 08. September 2010 19:12

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
gauri_agr
 
Posts: 11
Joined: 17. September 2009 14:13

Re: sendmail: cannot connect to localhost, port 25: Connection

Postby WilliL » 08. September 2010 22:31

Willi
WilliL
 
Posts: 660
Joined: 08. January 2010 10:54
Operating System: Win7Home Prem 64 SP1


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 123 guests