Server
Server export functions / types
sendMail
Send mail from either the system or a player. To use HTML, action buttons, etc. you have to send a mail from the system by using one of the reservedUsers
addresses you've configured in the mail app configuration.
Arguments
Name | Type | Description |
---|---|---|
data | MailData | Mail data |
source? | number | Player's ID, only required if you're sending a mail on behalf of a player. |
Example
getPlayerMailAccount
Get a player's mail account data
Arguments
Name | Type | Description |
---|---|---|
source | number | Player's ID |
Example
getOfflinePlayerMailAccount
Get an offline player's mail account data by player's identifier
Arguments
Name | Type | Description |
---|---|---|
identifier | string | Player's identifier |
Example
Messages
sendMessage
Send a message to a number from a number
Arguments
Name | Type | Description |
---|---|---|
data | MessageData | Message data |
source? | number | Player's ID, only required if you're sending a message on behalf of a player. |
Example
Types
MessageData
Name | Type | Description |
---|---|---|
sender | string | Sender phone number |
recipient | string | Recipient's phone number |
content | string | Message content |
attachments | Attachment[] | Attachments |
MailData
Name | Type | Description |
---|---|---|
sender | string | Sender phone number |
recipients | string | string[] | Recipient mail addresses |
subject | string | Mail subject |
content | string | Mail content |
attachments | Attachment[] | Attachments |
Last updated on