mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-07 15:10:37 -04:00
docs
This commit is contained in:
parent
8ce3dc2ecf
commit
dff068d75b
7 changed files with 91 additions and 139 deletions
4
mtt.lua
4
mtt.lua
|
@ -4,7 +4,9 @@ mtt.register("send mail", function(callback)
|
|||
auth_handler.set_password("player2", "")
|
||||
|
||||
-- send a mail
|
||||
mail.send({from = "player1", to = "player2", subject = "something", body = "blah"})
|
||||
local success, err = mail.send({from = "player1", to = "player2", subject = "something", body = "blah"})
|
||||
assert(success)
|
||||
assert(not err)
|
||||
|
||||
-- check the receivers inbox
|
||||
local entry = mail.get_storage_entry("player2")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue