Undefined property: Mandrill::$messages
<p>I am using <strong>mandrill API</strong> but getting <code>error:Undefined property: Mandrill::$messages.code:</code>     </p>

<pre><code>  $mandrill = new Mandrill('My KEY');        
    $message = array(
        'subject' =&gt; 'My subject',
        'from_email' =&gt; 'marc@example.com',
        'to' =&gt; array(array('email' =&gt; 'recipient1@example.com', 'name'=&gt; 'Marc')),
        'merge_vars' =&gt; array(array(
            'rcpt' =&gt; 'recipient1@example.com',
            'vars' =&gt;
            array(
                array(
                    'name' =&gt; 'FIRSTNAME',
                    'content' =&gt; 'Recipient 1 first name'),
                array(
                    'name' =&gt; 'LASTNAME',
                    'content' =&gt; 'Last name')
        ))));

    $template_name = 'Lodging Connection';

    $template_content = array(
        array(
            'name' =&gt; 'main',
            'content' =&gt; 'Hi *|FIRSTNAME|* *|LASTNAME|*, thanks for signing up.'),
        array(
            'name' =&gt; 'footer',
            'content' =&gt; 'Copyright 2013.')

    );        
    $response = $mandrill-&gt;messages-&gt;send($template_name, $template_content, $message);
    print_r($response);
</code></pre>