Send Email Asychronously Using Events

I want to send multiple emails asychronously. What I mean by this, is that I have created an action, called setUsers, which has an event onSetUsers. When this event happens, I am sending emails to the users from another class with the event handler, but I want this to happen asychronously, as the page is waiting for the mail to be send in order to continue.

I suggest that you look into RabbitMQ, Celery and celery-yii. Works like a charm.