Hi to all again,
Can anyone one help me with this? The scenario goes like this.
I have this PHP script:
<?php
$to = "email_address_here";
$subject = "SAMPLE AUTOMATIC MAIL";
$body = "Hi to Every one. Please help me with this ^^,";
if (mail($to, $subject, $body))
{
echo("<p>Message successfully sent!</p>");
echo "Sent to: $to";
}
?>
Above code works fine. When I type the "http://server/folder/phpfile.php" at my explorer address bar, the message was successfully sent.
I try to use windows schedule task to run this automatically, but it only open the phpfile.php itself. By the way, my I'm using Windows Server 2003 OS.
Note: I don't want to use cron for this activity.
Thanks in advance guys.