Ok I have updated my script, I have also got some information from phpinfo
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
SMTP localhost localhost
smtp_port 25 25
Path to sendmail /usr/sbin/sendmail -t -i
so if I am right this means its setup so mail() should work, right?
any how what else could the issue be?
scripte below:
<?php
ini_set('display_errors', 'ON');
ini_set('error_reporting', E_ALL | E_STRICT );
ini_set( 'sendmail_path', '/usr/lib/sendmail' );
$to = "sensory.access@gmail.com";
$subject = "Disability Info Seek - Account Acctivation Infomation";
$message = "Hello! This is a simple email message.";
$from = "sensory.access@gmail.com";
$headers = "From: $from";
if (!mail($to, $subject, $message, $headers)) {
echo 'oh crikey';
} else {
echo 'mail successfully queued for delivery';
}
?>
Thanks for any help with this.
Sincerely,
Christopher