Mail function not sending
Posted: Tue Jul 10, 2007 10:00 pm
I'm trying to email a file to myself from my linux home server (ubuntu, edgy eft). the server has sendmail and i'm trying to use the mail function to the file so i can post my problem to another forum. I tried this php script in command line, but nothing has reached my inbox, or spam filter.
any ideas as to what is going on? the php file is placed in "/var/log". And I'm trying to email the file, "boot".
Code: Select all
<?php
$messeage = file_get_contents("boot");
$to = "emailaddress@gmail.com";
mail($to,"test",$message);
?>