November 2014

Asynchronous calls in PHP / Drupal

The other day I was looking for ways to do asynchronous calls in PHP and found this great hint

Now the question was how to use this in Drupal to send email or SMS without blocking the main code.

Drupal provide a fantastic queueing capability and with that it's easy to implement this. To send an email or SMS or any such activity asynchronously do the following