Avenueduweb
Verified User
- Joined
- Jun 8, 2004
- Messages
- 113
Hello,
I've got a problem. I run a script for one of my user with a cron job, and this script send an email. When i run this script directly, the mail is sending and i've got no error in my mainlog (exim), but when this script is running by a cron job, the mail is not sending and in my mainlog, i read that :
How to run a php mail with a cron job ?
Thanks. Bye.
I've got a problem. I run a script for one of my user with a cron job, and this script send an email. When i run this script directly, the mail is sending and i've got no error in my mainlog (exim), but when this script is running by a cron job, the mail is not sending and in my mainlog, i read that :
2005-03-06 18:30:00 1D7zZo-0003Yc-Ik <= [email protected] U=user P=local S=981 T="test" from <[email protected]> for [email protected]
2005-03-06 18:30:00 1D7zZo-0003Yc-Ik ** [email protected] F=<[email protected]> R=lookuphost T=remote_smtp: SMTP error from remote mailer after MAIL FROM:<[email protected]> SIZE=2036: host mail.mail.com [213.36.240.228]: 553 <[email protected]> unable to verify address
2005-03-06 18:30:00 1D7zZo-0003Yf-Nj <= <> R=1D7zZo-0003Yc-Ik U=mail P=local S=2015 T="Mail delivery failed: returning message to sender" from <> for [email protected]
2005-03-06 18:30:00 1D7zZo-0003Yc-Ik Completed
2005-03-06 18:30:00 1D7zZo-0003Yf-Nj => user <[email protected]> F=<> R=localuser T=local_delivery S=2168
2005-03-06 18:30:00 1D7zZo-0003Yf-Nj Completed
2005-03-06 18:30:00 1D7zZo-0003Yb-IQ <= [email protected] U=user P=local S=1288 T="Cron <user@serveur1> /usr/local/bin/php /home/user/domains/user.net/public_html/sauvegarde-mys" from <[email protected]> for user
2005-03-06 18:30:00 1D7zZo-0003Yb-IQ => user <[email protected]> F=<[email protected]> R=localuser T=local_delivery S=1490
2005-03-06 18:30:00 1D7zZo-0003Yb-IQ Completed
How to run a php mail with a cron job ?
Thanks. Bye.