WoW:API SendMail: Difference between revisions

104 bytes added ,  20 September 2007
no edit summary
(removed code block)
No edit summary
Line 17: Line 17:
:* "[[Events/Mail#MAIL_SEND_SUCCESS|MAIL_SEND_SUCCESS]]", when the mail was successfully sent to the mailbox of the recipient
:* "[[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
:* "[[Events/Mail#MAIL_FAILED|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 ==
== Example ==
Assuming a friendly player named Bob exists on your server:
Assuming a friendly player named Bob exists on your server:
  SendMail("Bob", "Hey Bob", "Hows it going, Bob?")
  SendMail("Bob", "Hey Bob", "Hows it going, Bob?")
Anonymous user