This commit is contained in:
BuckarooBanzay 2023-03-28 15:28:38 +02:00 committed by Athozus
parent 8ce3dc2ecf
commit dff068d75b
No known key found for this signature in database
GPG key ID: B50895022E8484BF
7 changed files with 91 additions and 139 deletions

View file

@ -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")