ESODecoded

GetNextMailId

ESO Lua API function — used by 31 of the 3,030 addons we indexed (combined 1,655,215 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetNextMailId(id64:nilable lastMailId)

Returns: id64:nilable nextMailId

Real usage — from ESO-Database.com Export AddOn


		local mailId = GetNextMailId()
		while mailId ~= nil do

Short excerpt from the shipping addon ESO-Database.com Export AddOnits 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
ESO-Database.com Export AddOn272,910
CookeryWiz239,380
Merlin the Enchanter228,648
Wykkyd Mailbox162,721
Quick Enchanter135,864
Price Tracker Updated104,268