Manage cookies that are used for advertising, such as ad personalization, remarketing, and ad effectiveness analysis.
2.4.1.22. PHP mail log
The PHP mail log displays information about successful calls to the PHP function mail. The log is located in the "PHP mail log" section.
Date and filters
Calendar. Allows you to select the day for which the log will be displayed. In the calendar:
- Light green — days for which logs are available.
- Dark green — selected day.
- Red frame — current date.
Time filter. Allows you to view the log not for the whole day, but for a selected time period.
Search. Allows you to filter queries by the presence of certain text in them.
Download. Download buttons:
- "Download for day" — downloads the log for the day selected in the calendar.
- "Download for month" — downloads the log for the month to which the selected day in the calendar belongs. ⚠️ The log for the current month includes all days from the beginning of the month, except the current one.
Log
Important points:
- The log contains information only about successful calls to the PHP function mail (depending on the parameters passed, a successful call to the function does not always mean that the message was sent successfully — the function may run without errors, but the messages will not be sent). If the function returns an error, this information is written to the PHP error log.
- The log contains only information about the script that sent the message and the main headers. It is not possible to retrieve the text of the message or download it.
- Time in the log is not recorded on sites with PHP version lower than 5.5.
- "Time" — the time the message was sent.
- "Record" — consists of several parts:
mail() on [/home/example/example.com/www/script.php:ХХ]— path to the file/home/example/example.com/www/script.phpand line number:XX, where the PHP mail function was called.To: admin@example.com— recipient's mailbox specified in theTOheader.Headers:— additional headers that were specified when sending the message.Subject:— the subject of the sent message.
(1)