moving companies : Computers : Programming : Languages : PHP : Installation and Setup : General

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

34 of 79 people (43%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

How do I setup so mail() will work under windows?
I changed my php.ini file as SMTP= smtp.mail.yahoo.com,but it gives a server problem,why?

Dec 15th, 2001 17:58
Mark Hedges, Nathan Wallace, Anil Donmez, Phil Driscoll


No problem. Just set:
    SMTP   = the.mail.server.name   ;for win32 only
    sendmail_from = [email protected] ;for win32 only
in your php.ini file and then call the mail function as described in the
manual.
--- --- --- ---
[email protected] adds:
I'm encountering problems configuring this for a shared server 
environment.  Users of virtual web hosts have different mail servers on 
other machines.  There appears to be no facility to set the SMTP server 
within the script.  Is there any way to do this?
Thanks.  --mark--