RE: [PHP-WIN] Prob with Send mail using mail()
| From: | Asendorf, John | Date: | Tue, 17 Oct 2000 20:26:55 +0000 |
| Subject: | RE: [PHP-WIN] Prob with Send mail using mail() | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-3316@lists.php.net to get a copy of this message | ||
1) Looks like you're missing a ; at the end of
mail($email ,$subject,$message,$headers)
also you may want to try enclosing the strings in "'s like this:
mail( "$email" , "$subject" , "$message" , "$headers" );
2) I can't say for sure that "leo" is going to find your SMTP server.
For instance, I have
exchange.lcounty.com as our SMTP server... I would check the name of your
SMTP server.
---------------------
John Asendorf - jasendorf@lcounty.com
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
> -----Original Message-----
> From: Mian Shafiq-Ur-Rehman [mailto:msrehman@alibaba.com]
> Sent: Tuesday, October 17, 2000 3:59 PM
> To: Asendorf, John
> Subject: Re: [PHP-WIN] Prob with Send mail using mail()
>
>
> The code is here
>
>
> <?
> $email ="msrehman@mail.com";
> $subject="Hai Dear Friend";
> $message="Testing PHP mail";
> $headers=" ";
> mail($email ,$subject,$message,$headers)
> ?>
> AND the settings in php.ini are
>
> SMTP = leo
> sendmail_from = me@localhost.com
>
> Plz help me
>
> Thnx
>
>