The Mail app provides an email-style inbox for each player. Emails can be sent programmatically from the server — useful for job notifications, receipts, admin announcements, and automated systems.
- Inbox with subject, sender name and preview
- Full-screen email reader with HTML-formatted body
- Unread badge count on the app icon
- Mark as read / delete
- Emails persist in the database — not lost on disconnect
- Each player gets a unique email address derived from their phone number
SendMail export
Send an email to a player from any server-side resource:
lua
-- server.lua
exports.quanticPhone:SendMail({
phoneNumber = "5511999990000", -- recipient's phone number
subject = "Job application approved",
body = "Congratulations! Your application was accepted.",
sender = "LSPD HR Department", -- display name shown as "From"
})
-- You can also use HTML in the body:
exports.quanticPhone:SendMail({
phoneNumber = "5511999990000",
subject = "Your bank statement",
sender = "Maze Bank",
body = "<b>Balance:</b> $12,500<br><br>Thank you for banking with us.",
})If the player is offline, the email is stored and delivered the next time they open the Mail app after reconnecting.
GetEmailAddress export
Retrieve a player's email address (auto-generated from their phone number):
lua
-- server.lua
local email = exports.quanticPhone:GetEmailAddress("5511999990000")
print("Email:", email) -- e.g. "5511999990000@quantic.phone"