View Single Post
08/20/18, 03:01 PM   #2
SilverWF
 
SilverWF's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 55
Originally Posted by hardballking View Post
The SendMail() command doesn't work within my addon. Is there any kinde of parameter I have to pay attantion? or are there any special conditons that have to be meet.
EVENT_MANAGER:RegisterForEvent(self.name, EVENT_ACTIVITY_FINDER_ACTIVITY_COMPLETE,self.ActivityEnd)


function TestAddOn.ActivityEnd()
SendMail("@someon", "Titel", text_to_send)
end
Well, text_to_send is variable, but your function didn't specify it. Sure, it can be global for your addon variable, specified at Init - I dunno.
  Reply With Quote