WoW API: SendMail
Jump to navigation
Jump to search
Sends in-game mail, if your mailbox is open.
Template:Code/Begin
SendMail("recipient", "subject", "body")
Template:Code/End
Parameters
Arguments
- ("recipient", "subject", "body")
- recipient
- String - intended recipient of the mail
- subject
- String - subject of the mail
- body
- String - body of the mail
Triggers Events
- "MAIL_SEND_SUCCESS", when the mail was successfully sent to the mailbox of the recipient
- "MAIL_FAILED", when the mail was not successfully sent
Example
Assuming a friendly player named Bob exists on your server:
SendMail("Bob", "Hey Bob", "Hows it going, Bob?")