Send Email With Mandrillwrap

I will send an email with mondrillwrap, but I get the error

Non-static method Mandrill::call() should not be called statically, assuming $this from incompatible context

thanks for your help

//create action

public function actionCreate() {

    $email = Yii::app()->mandrillwrap;

    $model = new User;


    if (isset($_POST['User'])) {

        $email->subject = "test";

        $email->fromName = "user1";

        $email->fromEmail = "";

        $email->toName = "user2";

        $email->toEmail = "";

        $model->attributes = $_POST['User'];

        if ($model->save()) {


       $this->redirect(array('view', 'id' => $model->user_id));       }}

    $this->render('create', array('model' => $model,




‘mandrillwrap’ => array(

          'class' => 'ext.mandrillwrap.mandrillwrap',




Do you have mandrill in folder vendors? Do you use composer to get it?