cron job problem.
| From: | Mehmet Kamil ERISEN | Date: | Thu, 10 Jan 2002 21:08:04 +0000 |
| Subject: | cron job problem. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-80079@lists.php.net to get a copy of this message | ||
Hello All,
I have a php script that i tested first through my browser.
If has a simple mail() command.
It workd fine and I received the email.
not I tried to run it as a cron job by adding
#!/usr/local/bin/php -q
My webmaster account receives the confirmation that cron
job has run, but I do not receive the emails that the
program is
supposed to send.
This is the code:
Thanks for the help.......
#!/usr/local/bin/php -q
<?php
$subject="Cron Job has run";
$body="test.php is running now";
$sendtome = "erisen@yahoo.com";
mail($sendtome, $subject, $body);
?>
--- mike cullerton <php-l@bakednotfried.com> wrote:
> #!/usr/local/bin/php -q
>
> on 1/10/02 12:16 PM, Mark at maggelet@mminternet.com
> wrote:
>
> > I've got this problem that won't go away.
> >
> > The headers are showing up at the top of the page when
> I run php in
> > cgi mode. any ideas?
>
>
> -- mike cullerton
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> php-general-unsubscribe@lists.php.net
> For additional commands, e-mail:
> php-general-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
=====
Mehmet Erisen
http://www.erisen.com
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/