Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email function not working

Status
Not open for further replies.

glenmac

Technical User
Jul 3, 2002
947
CA
I can't get my email function working. I have checked the php.ini file and according to what I've read it's correct.
[mail function]
; For Win32 only.
SMTP = localhost ; for Win32 only

; For Win32 only.
sendmail_from = glenmac@lantzvillecomputers.com ; for Win32 only


I'm running IIS5 on win 2k server and have SMTP mail installed. Can anyone shead some light on what I'm doing wrong? I was thinking of changing localhost to my email server address would that work?
 
sleipnir214 the only mail service I'm running is the default smtp service that comes with IIS.
BB no error message but no email either.
 
Tried telneting and connection can't be established
 
I am can't even telenet to localhost at all yet the server is running fine.
 
the default IIS SMTP service doesn't actually send emails, i think its just a carrier for them.

You will need a mail server in order to send emails. --BB
 
Sleipnir214 yes I've tried port 25 no go. I give up I've added my ISPs server to my php.ini file and it works.
SMTP = my_isps_smtp_server. Thanks for all the replies. I think you're right BB101. But it seems strange that the default for php.ini smtp server is "localhost" on windows, and I've not found any documentation on how to impliment it.
I think maybe the mail service in IIS 5 will work on a lan.
 
glenmac:

It's probably a side-effect of the fact that PHP is platform agnostic. The authors use "localhost" because it is the only resolvable machine name which is guaranteed to exist. If you have an IP stack, you've got "localhost". Want the best answers? Ask the best questions: TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top