Sending email from PHP script.

Giganews Newsgroups
Subject: Sending email from PHP script.
Posted by:  ZikO (zeb…@op.pl)
Date: Thu, 03 Sep 2009

Hi

I am testing my scripts on localhost (Windows XP Pro) with PHP 5.2 and
Appache 2.2. I cannot send any emails from there. I mean I tried to use
mail() function but it does not work for me at all.

So Far i just tried:

if(mail($to, $title, $body))
  // positive result
else
  // negative result

Should I change anything in php.ini, add (install) anything else, or
reconfigure PHP or Appache.

Thanks

Regards.

Replies