If emails with reports sent in the usual waydo not reach the recipient, try organizing your own sending of reports using one of the methods described below.
wget
and curl
don't use the key -q
which suppresses the output.report.php
in the root of the hosting account and place the script from instructions, indicating your data in it.$text = "Hello, SMTP ping."; // содержимое отправляемого письма
Per line:
$text = shell_exec(addslashes($argv[1]) . " 2>&1");
/usr/local/bin/php -f /home/example/report.php "command"
example
indicate hosting account name.command
specify the command for which you want to receive reports.OUTPUT=$(command);echo -e "Subject:cron report\n${OUTPUT}" | sendmail -f "sender@example.com" -t "receiver@example.com"
command
specify the command for which you want to receive reports.cron script
this is the subject of the email, you can replace it with your own.sender@example.com
specify any domain mailbox directed to our hosting.receiver@example.com
specify the mailbox of the recipient of the report.