My cron job is run but no email is sent.
/usr/bin/php -f /home/user/public_html/test/cron/checklist.php task=client
result = OK
<?php
//get parameter from URL
$argv = $_SERVER['argv'];
$task = explode("=", $argv[1]);
?>
result = OK
Complication start here !
if(!$mail->Send()) {
echo "Mailer Error: " . $mail->ErrorInfo.'<br>';
} else {
echo "Message sent!<br>";
}
It says "Message sent!" but no email is sent! When I run it from a web page as a test, it works and sends mail
I use phpmailer to send.