User Tools

Site Tools


Sidebar

en:objects:mail:imap:get_message_by_number_via_imap

get_message_by_number_via_imap

get_message_by_number_via_imap($folder,$number); - get a message with the specified number via IMAP

The function accepts parameters as input:

  • $folder – IMAP folder name
  • $number – message number (starts with 0)

    After testing, the function returns the result of its work to the script :
  • message – message (type XHEMailMessage) with the following fields:
      • from - from
      • subject - subject of the message
      • date - date
      • body - message text
    If there is no such message, the fields will be empty

    PHP example:

     

    Python example:

     

    C# example:

     

    Java Script example:

     
  • en/objects/mail/imap/get_message_by_number_via_imap.txt · Last modified: 2020/10/13 18:28 (external edit)