Yes. Setting the SYSTEMROOT environment variable in Apach'e CGI environment did it. "Thou shalt not unset SYSTEMROOT" is a good commandment to stick with.
Thanks everybody for the excellent help! Regards, Prakash > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of Jason Tishler > Sent: Thursday, September 23, 2004 4:15 AM > To: [EMAIL PROTECTED] > Subject: Re: CYGWIN + APCHE + Net::SMTP > > Prakash, > > On Wed, Sep 22, 2004 at 04:04:23PM -0700, Prakash Khemani wrote: > > A similar problem occurs when I use /usr/sbin/ssmtp instead of Perl's > > Net::SMTP. > > > > I am able to send mail using /usr/sbin/ssmtp from the cygin shell cmd > > line. > > > > But when ssmtp is invoked from a perl script inside Apache2's CGI > > environment (sunning on Windows XP and cygwin) - I get the following > > error > > > > > > ssmtp: Cannot open mail.eng.netscaler.com:25 > > The following thread may be applicable: > > http://cygwin.com/ml/cygwin/2004-08/msg00368.html > > Is Apache2's CGI environment missing the SYSTEMROOT environment > variable? > > Jason > > -- > PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers > Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6 > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Problem reports: http://cygwin.com/problems.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/