Re: mail() simplified
| From: | Vinod Palan | Date: | Wed, 19 Jun 2002 23:12:40 +0000 |
| Subject: | Re: mail() simplified | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-103036@lists.php.net to get a copy of this message | ||
Hi,
you need to check your php.ini file, you must be missing mail from setting
in that
Thanks
Vinod
--
Vinod Palan A
Calypso Technology, Inc.
Vinod_palan@calypso-tech.com
(415) 817-2463 Phone
"Erik Price" <pricee@hhbrown.com> wrote in message
news:66476D8D-83CD-11D6-AAA5-0050E4857868@hhbrown.com...
> 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
>