Re: Send a mail by php
| From: | Chanh Huu Nguyen | Date: | Tue, 03 Oct 2000 04:35:30 +0000 |
| Subject: | Re: Send a mail by php | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-18365@lists.php.net to get a copy of this message | ||
Hi all,
I'm using Red Hat Linux, php4 and mysql. I want to send a mail by php4. I
don't kwon how to configure php.ini for sending mail on Linux. But on Win32,
it is Ok.
<?
$rs = mail("chanhnguyen@psv.com.vn","hi, mr Chanh","Hung
heo","From:hoanguyen@psv.com.vn");
if($rs) echo "Ok"; else echo "$Fail";
?>
Thanks
Chanh.
-----Original Message-----
From: Jason Murray [mailto:Jason.Murray@melbourneit.com.au]
Sent: Tuesday, October 03, 2000 12:32 PM
To: 'Chanh Huu Nguyen'; Php-General (E-mail)
Subject: RE: [PHP] Send a mail by php
> I am very new to php. I don't kown how to cofigure php.ini
> for sending a mail.
It helps if you tell us what you're running it on, otherwise we'll
end up sending you instructions for the wrong platform. I believe
this is covered in the manual at www.php.net/manual, too - a good
stop point for newbies.
Jason