I am using PHPMailer_v5.0.2 with php/5 and mysql/5.
When I run my cron job and it it encounters the line
(note: full path is actually used, and the file is found).
I get the error message:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/.mish/.../PHPMailer_v5.0.2/class.phpmailer.php on line 53
.. which is the first line of code in that file
I have other cron jobs that run using the same path to php ( it is /usr/local/bin/php), so I know it is ok.
If i run my cron job manually from the browser it runs fine.
But what must happen for phpmailer to be able to run with a cron job?