[Ilugc] Send Mail Using PHP in Fedora 12

  • From: kannan4k@xxxxxxxxx (Kannan)
  • Date: Thu Feb 4 12:05:55 2010

you need to configure mail server to send mails using PHP script.


How to configure the mail server to send mails?







With regards,

Kannan. R. P,
Blog @: http://kannan4k.wordpress.com/



On Thu, Feb 4, 2010 at 1:33 AM, baskar <baskar910@xxxxxxxxx> wrote:

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

_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Other related posts: