We use cookies
We use cookies to optimize our website. By continuing to browse the site, you agree to our use of cookies.
Control panel
  • Русский
  • Українська
  • English
  • UAH
  • USD
  • RUB
  • EUR
  • 0-800-307-307 Hotline
  • +38 (044) 392-74-33 Kiev
  • +38 (057) 728-39-00 Kharkiv
  • +38 (056) 794-38-31 Dnipro
  • +38 (032) 229-58-93 Lviv
  • +38 (048) 738-57-70 Odessa
  • +38(093) 170-15-42  Life
  • +38 (067) 400-88-44 Kievstar
  • +1(888)393-24-51  USA, Toll free
  • +44(131)507-01-14  Great Britain
  • +7 (499) 348-28-61 Moscow

2.11.1.2. The reports do not reach the recipient

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.

Important points:

  • Only what the command being executed will be sent to the mail.
  • When using utilities wget and curl don't use the key -qwhich suppresses the output.
To organize the sending of the report, do the following:
  1. Create a file named report.php in the root of the hosting account and place the script from instructions, indicating your data in it.
  2. In the script, additionally replace the line:
    $text = "Hello, SMTP ping."; // содержимое отправляемого письма

    Per line:

    $text = shell_exec(addslashes($argv[1]) . " 2>&1");
  3. Add a cron task and specify the following command as a task:
    /usr/local/bin/php -f /home/example/report.php "command"
    • Instead example indicate hosting account name.
    • Instead command specify the command for which you want to receive reports.
  4. It is recommended to first run the command manually, by connecting via SSHto make sure it works exactly as intended.
To organize sending a report without creating additional files, do the following:
  1. Add a cron task y specify the following command as a task:
    OUTPUT=$(command);echo -e "Subject:cron report\n${OUTPUT}" | sendmail -f "sender@example.com" -t "receiver@example.com"
    • Instead command specify the command for which you want to receive reports.
    • Text cron script this is the subject of the email, you can replace it with your own.
    • Instead sender@example.com specify any domain mailbox directed to our hosting.
    • Instead receiver@example.com specify the mailbox of the recipient of the report.
  2. It is highly recommended to configure SPF and DMARC policies for the domain whose mailbox was specified in the command as the sender.