View Single Post
02/25/15, 04:25 AM   #4
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,050
I guess it is viable for the current source code as the function tim.sendQueuedMail() is called several times, once for each new guil member mail?

As an alternative you could delay the call to this function tim.sendQueuedMail(), use zo_callLater(tim.sendQueuedMail(), 500) or something like this.

With other addons I have seen sourc code where the EVENTS (crafting_finished e.g.) was the trigger to call the next process.
Maybe there is an event like "MAIL_HAS_BEEN_SENT" and you could use this one to send the next mail (+ delay in between.
  Reply With Quote