Основной сайт хуманэмулятор.рф | Демо | Купить | API | Wiki
Web / outlook
delete_message_by_number
delete_message_by_number($folder,$number,$timeout=300); - Удалить письмо с заданным номеромФункция на вход принимает параметры:
После выполнения функции возвращаемое значение будет равно одному из двух :
Пример использования
<?php // Scenario: Delete a message by its number in a specific folder in Outlook $xhe_host = getenv("RPABOT_HOST_URL"); if (!isset($path)){ // Path to the init.php file for connecting to the XHE API $path = "../../../Templates/init.php"; // Including init.php grants access to all classes and functionality for working with the XHE API require($path); } echo "\n<span>outlook->" . basename (__FILE__) . "</span>\n"; // Step 1. Get the number of messages in the specified folder $folder = "\\\\bigfozzy_tds@mail.ru\\Черновики\\ToMyself"; echo "1. Get the number of messages in the specified folder: "; $countBefore = WEB::$outlook->get_message_count($folder); echo $countBefore; // Example 1. Delete a message by number $messageNumber = 0; echo "\n\nExample 1. Delete a message by number: "; $result = WEB::$outlook->delete_message_by_number($folder, $messageNumber); echo $result; // Step 2. Get the number of messages in the folder again to verify echo "\n2. Get the number of messages in the folder again to verify: "; $countAfter = WEB::$outlook->get_message_count($folder); echo $countAfter; echo "\n"; // Quit WINDOW::$app->quit(); ?>
=============================================
outlook Объекты DOM System Vision Web Window
=============================================
если что-то непонятно или необходимо узнать или считаете что надо добавить по работе этой функции, пишите в комментарии или на наш форум
.