Connecting Tech Pros Worldwide Forums | Help | Site Map

Failed to connect to mailserver at localhost; port 25

Newbie
 
Join Date: Mar 2008
Posts: 2
#1: Mar 24 '08
hi
am trying to set the php.ini file to send emails but i cant get it to work,
i have tried many things i read in different forums but still i cant get it to work.
my recent php.ini file looks like this:

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
sendmail_from = kiriltankov@gmail.com
sendmail_path = /usr/sbin/sendmail -t -i

can anyone help me out.
am runnig an apache server on my machine
cheers

dlite922's Avatar
Expert
 
Join Date: Dec 2007
Location: Moon, Dark Side
Posts: 1,095
#2: Mar 25 '08

re: Failed to connect to mailserver at localhost; port 25


Quote:

Originally Posted by kyrillos

hi
am trying to set the php.ini file to send emails but i cant get it to work,
i have tried many things i read in different forums but still i cant get it to work.
my recent php.ini file looks like this:

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
sendmail_from = kiriltankov@gmail.com
sendmail_path = /usr/sbin/sendmail -t -i

can anyone help me out.
am runnig an apache server on my machine
cheers

you need a mailserver, you set it to localhost (your computer),

which probably is not a mail server (no mail applications)

Try setting it to qwest smtp

choose one from this page: http://www.qwest.net/help/roaming.html

you should be able to send with it. I've tried it before.

Good luck
dlite922's Avatar
Expert
 
Join Date: Dec 2007
Location: Moon, Dark Side
Posts: 1,095
#3: Mar 25 '08

re: Failed to connect to mailserver at localhost; port 25


and make sure you firewall is not blocking port 25.
Newbie
 
Join Date: Mar 2008
Posts: 2
#4: Mar 26 '08

re: Failed to connect to mailserver at localhost; port 25


hey,
thanx for your advice but i still cant get it to work!!!
i tried everything.
i really dont know what is the problem
Reply