hi,
i used mail function in my local system.In that i didn't get any errors and mail didn't receive.And in my php.ini consists
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
sendmail_from = me@example.com
at the time of installation of php it asks the smtp and from address.And i give as smtp=localhost and from address as me@example.com
And my php code is
[php]
<?php
$to = "sravanik@example.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "me@example.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
[/php]
Anybody plz tell that what's the solution for that.plz help me.