Sends mail.
Interaction category: mail
Command.Mail.Send(mail) | |||
Command.Mail.Send(mail, callback) | |||
Parameter | Type | Datatype | Description |
---|---|---|---|
callback | parameter | callbackfunction | A standard command callback, used for detecting success or failure. See the "callbackfunction" documentation for more details. |
parameter | table | Table containing data about the mail to send. to: The name of the player to send mail to. Required. subject: The mail's subject. Required. body: The mail's body. cod: The money required for the recipient to remove attachments. Mutually exclusive with "coin", requires non-empty "attachments". coin: The amount of money attached to this message. Mutually exclusive with "cod". attachments: A table listing the item IDs of the items you wish to attach. Maximum of 6. |