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.
|