title: sendGrid mail function not working in yii-framework
body: <p>I used below code for sendGrid codes for sending mails from my project.</p>
  
  <pre><code>require_once(YII_BASE_PATH . "/lib/sendgrid-php/SendGrid.php");
  require_once(YII_BASE_PATH . "/lib/sendgrid-php/SendGrid_loader.php");   
  $sendgrid = new SendGrid('uname', 'pwd');
          $mail = new SendGrid\Mail();
          $mail-&gt;addTo('xxxxxxxxxx@gmail.com')-&gt;
                 setFrom('xxxyyyy5@yahoo.co.in')-&gt;
                 setSubject('Subject goes here')-&gt;
                 setText('Hello World!')-&gt;
                 setHtml('&lt;strong&gt;Hello World!&lt;/strong&gt;');
         $sendgrid-&gt;smtp-&gt;send($mail);
  </code></pre>
  
  <p>I already downloaded the sendGrid package and put it into lib folder in yii.</p>
  
  <p>if I execute the above code i got error like <code>"include(Swift_DependencyContainer.php): failed to open stream: No such file or directory"</code></p>
  
  <p>if I included the above file i got error like another file need to be include.</p>
  
  <p>Kindly advice on this.</p>