mailitem
MailItem is a class in the Microsoft Outlook Object Model that represents an email message within Outlook. It is used for creating, reading, and manipulating mail items in the Outlook environment. Developers typically create a new mail item with a method like CreateItem and then configure its properties before sending or displaying it. MailItem objects can be accessed through folders, search results, or the Items collection of a mailbox.
Common properties of a MailItem include To, Cc, Bcc, Subject, Body, and HTMLBody, as well as SentOn
Key methods available on a MailItem include Save, Send, Display, and Close, as well as operations to
MailItem is primarily used in automation and add-ins within Outlook, via VBA, VSTO, or other COM-compliant languages.