Re: mail() simplified

From: Date: Wed, 19 Jun 2002 22:14:17 +0000
Subject: Re: mail() simplified
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-103028@lists.php.net to get a copy of this message
Works just fine here. -Kevin ----- Original Message ----- From: "Erik Price" <pricee@hhbrown.com> To: <php-general@lists.php.net> Sent: Wednesday, June 19, 2002 3:42 PM Subject: [PHP] mail() simplified > I've simplified my script. Does anyone see anything wrong with my > code? It's self-containing, so if you want to try it on your own PHP > server and see if it works for you... for some reason this still doesn't > work, and $return still evaluates to 0. It evaluates to 1 if successful. > > > > > <html> > <head> > <title>a mail Test</title> > </head> > <body> > > <?php > $return = mail('pricee@hhbrown.com', 'subject', 'message'); > > print "<p>Now, hopefully your message has been sent. "; > print "The return value of mail() is " . (int)$return . ".</p>\n"; > ?> > > </body> > </html> > > > > > > ---- > > Erik Price > Web Developer Temp > Media Lab, H.H. Brown > pricee@hhbrown.com > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#103028) next »