[Ilugc] Send Mail Using PHP in Fedora 12
baskar
baskar910 at gmail.com
Thu Feb 4 12:03:08 IST 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 at gmail.com";
> $subject = "Test mail";
> $message = "Hello! This is a simple email message.";
> $from = "blood.kec at gmail.com";
> //$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
More information about the ilugc
mailing list