Fandom

WoWWiki

API SendMail

104,635pages on
this wiki
Add New Page
Talk1 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < SendMail

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

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

Parameters Edit

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 Edit

  • "MAIL_SEND_SUCCESS", when the mail was successfully sent to the mailbox of the recipient
  • "MAIL_FAILED", when the mail was not successfully sent

Note: A second call to SendMail() will not work until a SEND_MAIL_SUCCESS or SEND_FAILED event occurs.

Example Edit

Assuming a friendly player named Bob exists on your server:

SendMail("Bob", "Hey Bob", "Hows it going, Bob?")

Note: SendMail("Bob", "", "How it going, Bob?") will not work as the subject is blank. SendMail("Bob", " ") will.

Also on Fandom

Random Wiki