Re: Trying to send mail from PHP with SMTP ?
| From: | Mukul Gandhi | Date: | Wed, 17 Nov 1999 04:48:55 +0000 |
| Subject: | Re: Trying to send mail from PHP with SMTP ? | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-12642@lists.php.net to get a copy of this message | ||
Hi ,
Sorry I mistyped MAIL TO:, I actually used RCPT TO: . But still the
program is not working. I think some problem is there in the syntax.
regds
-mukul
At 01:38 PM 11/16/99 +0100, Sascha Schumann wrote:
>On Tue, Nov 16, 1999 at 05:49:54PM +0500, Mukul Gandhi wrote:
>> Hi,
>> I am trying to run a PHP script whose code is given below. It will open a
>> socket to a SMTP server and send email. But this code not able to send
>> email. But it executes ! SMTP commands seem to be right.
>>
>> ------------------------------------------
>> $from = "MAIL FROM:<abc@pqr.com>";
>> $to = "MAIL TO:<mgandhi@bhartitelesoft.com>";
>
> RCPT TO:
>
> See RFC 821
>
>--
>
> Regards,
>
> Sascha Schumann
> Consultant
--------------------------------------------------------------
Bharti Cellular Limited, New Delhi, India