Brian,

It seems that you are getting the message because PHP doesn't know how to
connect to "server", therefore you need to tell it where to connect to.

In you php.ini, you need to set the SMTP value where the line says "server"
to something meaningful.  This value needs to point to a valid smtp relay.

For example, if your webserver also relays smtp:

SMTP              =     localhost                              ;for win32
only
sendmail_from     =     Webmaster <[EMAIL PROTECTED]>   ;for win32
only


-----Original Message-----
From: Brian [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 12:46 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] sending email out using php?


I'm using php 4.0, winXP(pro), OmniHTTPd Pro 2.0.

i want to beable to have users register and then have my script send out an
email to them confirming registration.
i keep getting this error:
   Warning: Failed to Connect in auth.php on line 168
The code in auth.php is correct because i got it off a site where people had
success using it.
In my php.ini thing (im using the 'optimized' version thats included with
the download), heres my [mail function] stuff:

SMTP                 =     server     ;for win32 only
sendmail_from     =     server     ;for win32 only
;sendmail_path    =                    ;for unix only...

Everything else works fine.
Any ideas?

Thanks,
Brian




-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to