Thread Tools Display Modes
Prev Previous Post   Next Post Next
05/13/14, 06:23 AM   #1
CatoTheElder
Join Date: May 2014
Posts: 44
SendMail function request for details

Hey All,

I'm working on a small addon for GM/Officer ease of life. The part I'm specifically having trouble with is to allow GMs and Officers to mail Officers and Recruits.

To minimize abuse, I have it coded so you can only mail people in a guild you are an officer or GM of, and you can only mail members who are officer ranked or recruit rank in that guild.

Unfortunately, I cannot get the SendMail function to work. It doesn't show any errors, or stop execution at all. It seems to run fine, it simply doesn't send any mail. For troubleshooting sake of ease:

Function:
SendMail(string to, string subject, string body)

I've tried the following (outside of an addon):
/script SendMail("@MyOfficer", "Test1", "Test1");
/script SendMail("MyOfficersToonName", "Test2", "Test2");
/script to = "@MyOfficer"; SendMail(to, "Test3", "Test3");

Can anyone verify my results, or shed some light on why I'm seeing this behaviour?

Cheers!
Cato
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » SendMail function request for details


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off