Aris, Thanks for such a complete run-down. My comments/further questions are interposed:-
> SMTP = mail.server.com > sendmail_from = [EMAIL PROTECTED] > ;sendmail_path = I can't see the mail server from 'outside', but the settings look right - when you can, let's look at the 'real deal' though! > this is how it stands on both of the mashines. > SMTP server is not the same machine as webserver. > And i can telnet to SMTP port from webserver without any problems > (no need for authentication) Good thinking! To really put icing on the cake, how about using an email client/'native' SMTP - does the mail get through? (if it's not, the email client doesn't *need* to be on the same box, but keep to same sub-net just in case) > both the workstation (on which mail works) and server are on the smae > network, only thing i dont know is how is php installed on the server > is it cgi or IIS module, on the workstation it is as cgi (apache as > server) > IIS is version 4 and it is windows nt server Neither SMTP nor PHP requires that the two be on the same 'network'. SMTP is an Internet-wide facility - as long as the routing/name serving is in place... (which seems pretty much proven). From this box (192. class C subnet), I point directly at my ISP's SMTP server (10. class A subnet)! > phpinfo() shows that php is reading php.ini and takes the set value for > SMTP so i guess it is setup like cgi(but im not sure). > > could it be due to the version of php (4.0.2) ? On this box, I'm using PHP 4.0.6 under NTWS 4.0 SP6a, and have good service. > > > Im trying to use mail() function with PHP 4.02 under WIndows NT Server > > > and IIS > > > and I allways get Failed to connect Exactly how/where do you get this msg? Worth posting that chunk of PHP code? > > > even though the SMPT server in php.ini is setup correctly > > > and i cna acces that server from webserver > > > > > > doing the same thing on WIndows NT Workstation and apache (same version > > > of PHP) works. > > > is it something with that PHP version or there is something else i have > > > to take look at. > > > > Please post the section from php.ini (both of them, if you like). > > Is the SMTP server on the same or a different box to the NT Server? > > IMHO: best not to use the SMTP 'stub' in IIS - set the php.ini to go straight to >wherever that points! Those are the major points to focus on. Will look forward to hearing how you get on. =dn -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php