protractus
New member
- Joined
- Sep 20, 2007
- Messages
- 4
When I execute a php-script with a mail-function as a user: for example http://www.domain.nl/mailscript.php the mailfunction works ok and the mail is corectly send to the recipient.
But if I execute the same script with a Cronjob:
/usr/local/bin/php /home/theclash/public_html/mailscript.php
then the mail will be returned to the server with the message:
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed: xxxxxx
SMTP error from remote mail server after RCPT TO:<xxxxxxxxx>:
host xxxxxxx [xxxxxxxxxx]: 550 5.1.8 <xxxxxxxxxxxxxxxxxxxx>:
Sender address rejected: Domain not found
Can anyone help me?
But if I execute the same script with a Cronjob:
/usr/local/bin/php /home/theclash/public_html/mailscript.php
then the mail will be returned to the server with the message:
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed: xxxxxx
SMTP error from remote mail server after RCPT TO:<xxxxxxxxx>:
host xxxxxxx [xxxxxxxxxx]: 550 5.1.8 <xxxxxxxxxxxxxxxxxxxx>:
Sender address rejected: Domain not found
Can anyone help me?
Last edited: