Re: mail didn't work out

From: Date: Mon, 16 Oct 2000 18:40:25 +0000
Subject: Re: mail didn't work out
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-20415@lists.php.net to get a copy of this message
On Mon, 16 Oct 2000, N. Sagar Chand wrote: > > Hi, > > I have written the following code > > <? > $title = 'sagar'; > $msg = 'Name: '.$name."\n"; > $msg .= 'Age: '.$age."\n"; > $msg .= 'Suggestions: '."\n".$msg."\n"; > $msg .= 'Mail ID: '.$id."\n"; > > mail('sagarchand@chandu.com',$title,$msg,'From: > sagar<name@sagar.net>'); > > ?> > > i am running php4 on win95 with pws > > i am gettin an error saying > Warning: Failed to Connect in C:\Inetpub\wwwroot\php\mail.php on line 19 > > how to ? I've never run PHP on windows but on UNIX you need sendmail (Or another mailer) to send out mail with PHP. You probably need to install an SMTP server on your system to send the mail... -- James Atkinson ----------------------------------------------------------------- James Atkinson 100world Technical Developer 512-1529 West 6th Avenue phone: +1-604-637-8122 Vancouver, BC, V6J 1R1 fax: +1-604-742-1770 Canada email: james.atkinson@100world.com http://www.100world.com +---------------------------------------------------------------+ | This message may contain confidential and/or privileged | | information. If you are not the addressee or authorized to | | receive this for the addressee, you must not use, copy, | | discolse or take any action based on this message or any | | information herein. If you have received this message in | | error, please advise the sender immediately by reply e-mail | | and delete this message. Thank you for you cooperation | +---------------------------------------------------------------+

« previous php.general (#20415) next »