mirror of
https://github.com/mt-mods/mail.git
synced 2025-08-16 19:26:34 -04:00
updated files
This commit is contained in:
parent
ca88374fbd
commit
74b18f38eb
7 changed files with 90 additions and 95 deletions
9
api.md
9
api.md
|
@ -4,8 +4,8 @@ The mail format in the api hooks
|
|||
|
||||
```lua
|
||||
mail = {
|
||||
sender = "source name",
|
||||
receiver = "destination name",
|
||||
src = "source name",
|
||||
dst = "destination name",
|
||||
subject = "subject line",
|
||||
body = "mail body",
|
||||
-- 8 attachments max
|
||||
|
@ -22,8 +22,8 @@ mail.send("source name", "destination name", "subject line", "mail body")
|
|||
New variant (1.1+)
|
||||
```lua
|
||||
mail.send({
|
||||
sender = "source name",
|
||||
receiver = "destination name",
|
||||
src = "source name",
|
||||
dst = "destination name",
|
||||
subject = "subject line",
|
||||
body = "mail body"
|
||||
})
|
||||
|
@ -47,7 +47,6 @@ The mail format on-disk
|
|||
[{
|
||||
"unread": true,
|
||||
"sender": "sender name",
|
||||
"receiver": "receiver name",
|
||||
"subject": "subject name",
|
||||
"body": "main\nmultiline\nbody",
|
||||
"time": 1551258349,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue