That's correct. I've seen a discussion on dev phorum about embeding SMTP code in PHP, but as I remember the final decision was that SMTP code will stay outside of PHP code.
-- Andrey Hristov Web Developer Icygen Corporation BUILDING SOLUTIONS http://www.icygen.com On Monday 22 October 2001 06:46 am, you wrote: > Hi, > I see that everybody is looking for the error in the header function - but > the error actually is that Luditus is trying to use mail on a Windows box > with no SMTP server on it. > It is possible to suppress the mail function output using @mail, but it > won't fix the problem - if you want to use mail function on a WIN machine > you'll need a sendmail like program and you will have to adjust the > sendmail_path variable in your PHP configuration. > > HTH > Dobromir Velev > > -----Original Message----- > From: Luditus <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> > Date: Sunday, October 21, 2001 1:41 PM > Subject: [PHP-DB] How to write errorhandling?? > > >Hi Fokes, > > > >I would like to send an mail via the mail function. > > > >If the mail failes I would like to redirect to an errorpage. Currently my > >code looks like this: > > > > if ( mail($email,$subject_confirm_account, $message_confirm_account, > >$from_confirm_account) ){ > > HEADER("Location:index.php?fuseaction=txt&msg=registered"); > > file://success > > > } > > else{ > > HEADER("Location:index.php?fuseaction=txt&msg=mailproblem"); // mail > > could > > >not been sent > > }; > > > >Unfortunatelly I get an erromessage like that: > > > >Warning: Failed to Connect in > >e:\projects\globosapiens\07_production\actual\account\include\user.php on > >line 256 > > > >Warning: Cannot add header information - headers already sent by (output > >started at > >e:\projects\globosapiens\07_production\actual\account\include\user.php:256 > >) in > > e:\projects\globosapiens\07_production\actual\account\include\user.php > > on > > >line 260 > > > >Where is the problem??? I can't see it. > > > >Maybe one of you guys could help me out. > > > >Thanx in advance, > > > >Luditus > > > > > > > >-- > >PHP Database 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 Database 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]