Page 1 of 1

Mail function not sending

Posted: Tue Jul 10, 2007 10:00 pm
by afbase
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.

Code: Select all

<?php 
$messeage = file_get_contents("boot");
$to = "emailaddress@gmail.com";
mail($to,"test",$message);

?>
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".

Posted: Wed Jul 11, 2007 2:01 am
by tapas_bahirbag
Check the mail configuration.

--
Tapos Pal

Posted: Wed Jul 11, 2007 7:07 am
by superdezign
*cough* SwiftMailer *cough*

You'll do better using SMTP.