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.3.18. PHP mail log

PHP mail logs are located in the "Hosting My sites → PHP mail log»:

Important points:

  • The logs store only sending emails using the PHP function mail.
  • The log shows only successful calls to the function without errors. If an error occurs when calling the function, this information will be displayed in PHP error log.
  • Logs are stored for only one day, it is not possible to view logs for previous days.
  • The log contains only information about the script within which the sending was made, and additional headers, the text of the letter cannot be obtained.
  • It is impossible to download the letters that correspond to the entries in the log.

In the PHP mail log, each attempt to send a letter is displayed on a separate line:

  • «Recording "- each entry in the log is not divided into separate columns or parameters and is displayed in one line, but it can be conditionally parsed for convenience:
    • DD-Mes-YYYY - date of entry in the log. Indicated in English in the "Day-Month-Year" format.
    • HH:MM:SS - time of recording in the log. Specified in the format "hour: minute: second".
    • TimeZone - time zone, which corresponds to the entry from the log. Indicated in English. For a server in Ukraine, the value will be indicated as "Europe / Kiev".
    • mail() on [/home/example/example.com/www/script.php:XX] - the path to the file /home/example/example.com/www/script.php and line number :ХХwhere an attempt was noticed to send a letter using the PHP mail function.
    • To: admin@example.com - the recipient's mailbox, which was specified in the header TO.
    • Headers: - additional headers specified when sending the letter.
    • Subject: - subject of the sent letter.

To download the log for the selected day, click “Download"At the top of the log: