Tovarischi. There is a box on mail.ru. Using imap_open, I successfully connect to imap.mail.ru and drag a list of incoming messages. The question is, how can I get a list of outgoing messages? UPD: In general, who cares, mail.ru stores outgoing messages in the "Sent" folder. That's right, in Russian letters, and it is necessary to write instead of INBOX.
Example:
<?php header('Content-Type: text/html; charset=utf-8'); $host = 'imap.mail.ru'; $port = 993; $login = 'yourmail@domen.com'; $pass = 'pass'; $param = '/imap/ssl/novalidate-cert'; $folder = 'Отправленное'; if($mbox = imap_open("{"."{$host}:{$port}{$param}"."}$folder",$login,$pass)){ echo "Connectedn"; } else { exit ("Can't connect: " . imap_last_error() ."n");echo"FAIL!n"; };?>