Re: the mail() again!!!!

From: Date: Fri, 16 Mar 2001 16:09:15 +0000
Subject: Re: the mail() again!!!!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-44269@lists.php.net to get a copy of this message
well, you try to send mail without a program to do it, you need a program like sendmail to send mail on your windows machine, I use it on linux and works very well...try to find sendmail for windows and confugure the php.ini on the line to send mail... Nilesh Parmar wrote: > Hi > I have installed php4 with apache onto my windows 98 machine .I am trying > to send an email using the mail() function . When i run the following piece > of code i get a warning .Can anyone please help me figure what has gone > wrong and suggest me with what to do. > **************************** > This is the code!! > <?php > $mailto = "nilesh_parmar@rediff.com; > $mailsub = "this is a php mail() function"; > $body = " i hope this works"; > > if (mail($mailto ,$mailsub, $body)) > echo("successfully sent an email to $mailto"); > else > echo("failed to send the email \"$mailsub\" to $mailto"); > ?> > ************************************* > the following is the warining i get. > Warning: Server Error in c:\program files\apache > group\apache\htdocs\nilesh\mail.php on line 6 > failed to send the email "this is a php mail() function" to > nilesh_parmar@rediff.com > > ******************************************** > Hoping someone can help me in this regard > bye and thanx in advance > Nilesh Parmar > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- -------------------------------------- Romeo Manzur Web Application Developer iSilicom Av. 27 de Febrero 904-A Desp 1, Centro C.P.:86000 Villahermosa, Tabasco, Mexico Tel.:(52)(9)3-12-4790 --------------------------------------

« previous php.general (#44269) next »