[Ilugc] Send Mail Using PHP in Fedora 12

  • From: baskar910@xxxxxxxxx (baskar)
  • Date: Thu Feb 4 11:58:36 2010

Hi
On Thu, 2010-02-04 at 01:13 -0500, Kannan wrote:

Hi Friends...
         I want to send email using the PHP script.
I didn't configure any mail server & smtp.

For sending mail i use a script

$to = "kannan4k@xxxxxxxxx";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "blood.kec@xxxxxxxxx";
//$headers = "From: $from";
if(mail($to,$subject,$message))
echo "Mail Sent.";



This doesn't work.
How to configure the system to sending mail using PHP script?
Operating System: Fedora 12

you need to configure mail server to send mails using PHP script. You
need to update this parameter in php.ini also as follows
sendmail_path = /usr/sbin/sendmail -t -i 

Thanks
baskar

Other related posts: