kai5263499/mandrill-php — pull request #1 by detonator (2012-04-17 18:27:23+00:00)
Title: Trying to use php_sapi_name() to detect the CLI environment

Hi,
I've experienced that not every server has $_SERVER['HTTP_USER_AGENT']
So I want to suggest you to use the php_sapi_name() function to detect the CLI environment.