WoW:API SendMail: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Added a bit more detail.)
(removed code block)
Line 1: Line 1:
{{wowapi}} __NOTOC__
{{wowapi}}
 


Sends in-game mail, if your mailbox is open.
Sends in-game mail, if your mailbox is open.
{{Code/Begin}}
SendMail("recipient", "subject", "body")
SendMail("recipient", "subject", "body")
{{Code/End}}
 


== Parameters ==
== Parameters ==

Revision as of 23:50, 12 May 2007

WoW API < SendMail

Sends in-game mail, if your mailbox is open.

SendMail("recipient", "subject", "body")

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