Joywork/cron/testMail11.php
2026-05-22 21:21:54 +03:00

40 lines
1.5 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
set_time_limit(0);
require_once($_SERVER['DOCUMENT_ROOT']."/config.php");
ini_set('display_errors', 1);
error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE);
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Проверка парсинга мыла CARUSO [carusoan@yandex.ru]</title>
</head>
<body>
<?php
try {
ParseMailForClients::parseStats($mdb, [
'id_agent' => 10429, // АН CARUSO
'client_funnel_id' => 0, // Воронка: Общий список
'req_funnel_id' => 551, // Воронка: Новые лиды
'req_type_id' => 1, // Тип заявки: Подбор объекта
'source_name' => 'Таргетированная реклама', // Источник (словами)
'tag_name' => 'Таргетированная реклама', // Тег (словами)
'who_work_id' => 10429, // Ответственный в заявках: Лисин Григорий Никитич
'mailbox' => [
'imap' => '{imap.yandex.ru:993/imap/ssl}INBOX',
'login' => "carusoan@yandex.ru",
'password' => "fzewmnpoqusbhnlo",
'encoding' => "UTF-8",
],
'from_sender' => 'noreply@flexbe.com',
'track_code' => 'last_checked_mail14_id', // ID для отслеживания в БД
]);
} catch (Exception $ex) {
error_log("ParseMailForClients() / carusoan@yandex.ru / ID: 10429 / " . $ex->getMessage());
}
?>
</body>
</html>