WoW:API SendMail: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
(Added a bit more detail.)
Line 1: Line 1:
SendMail("target", "subject", "body");
{{wowapi}} __NOTOC__
Sends in-game mail to player named "target" with subject "subject" and mail body "mail"


{{Template:WoW API}}
 
Sends in-game mail, if your mailbox is open.
{{Code/Begin}}
SendMail("recipient", "subject", "body")
{{Code/End}}
 
 
== Parameters ==
 
<big>'''Arguments'''</big>
:("recipient", "subject", "body")
 
:;recipient: String - intended recipient of the mail
:;subject: String - subject of the mail
:;body: String - body of the mail
 
 
== Triggers Events ==
:* "[[Events/Mail#MAIL_SEND_SUCCESS|MAIL_SEND_SUCCESS]]", when the mail was successfully sent to the mailbox of the recipient
:* "[[Events/Mail#MAIL_FAILED|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?")

Revision as of 20:25, 10 December 2006

WoW API < SendMail


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