ESODecoded

EVENT_MAIL_CLOSE_MAILBOX

ESO Lua API event — used by 38 of the 3,030 addons we indexed (combined 6,392,841 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

EVENT_MAIL_CLOSE_MAILBOX

Real usage — from Arkadius' Trade Tools

function ArkadiusTradeTools:OnEvent(eventCode, arg1, arg2, ...)
  if ((eventCode == EVENT_MAIL_OPEN_MAILBOX) or (eventCode == EVENT_MAIL_CLOSE_MAILBOX)) then
    if (Settings.showOnMailbox) then

Short excerpt from the shipping addon Arkadius' Trade Toolsits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
Master Merchant 3.03,883,523
Arkadius' Trade Tools845,488
PersonalAssistant (Banking, Consume, Junk, Loot, Repair, Worker) [Masteroshi430's branch]487,232
CookeryWiz239,380
Shissu's Guild Tools186,581
Unboxer140,238