ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   How to send mails? (https://www.esoui.com/forums/showthread.php?t=8011)

hardballking 08/20/18 02:34 PM

How to send mails?
 
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

text_to_send is just some text

SilverWF 08/20/18 03:01 PM

Quote:

Originally Posted by hardballking (Post 35733)
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.

hardballking 08/20/18 03:11 PM

Even if i send some text like "hi" it diden't work

hardballking 08/21/18 02:27 AM

i have the solution you need to call RequestOpenMailbox() befor and CloseMailbox() after SendMail

Cheryl Lowry 08/23/18 11:49 AM

it really works? Need to try


All times are GMT -6. The time now is 12:40 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI