title: sending email with codeigniter
body: <p>I have this <strong>MODEL</strong> and I get the email which I want to send</p>
  
  <pre><code>class Cliente_Model extends CI_Model{
  
  public function getInfo($id){
  
      $this-&gt;db-&gt;select('*');
      $this-&gt;db-&gt;from('pendientes');
  
      $query = $this-&gt;db-&gt;get();        
  
      if($query-&gt;num_rows() &gt; 0)
      {
          foreach ($query-&gt;result_array() as $row)
          {
              return $row['email'];
          }
      }
      else
      {
          return FALSE;
      }
  }
  }
  </code></pre>
  
  <p><strong>CONTROLLER</strong></p>
  
  <pre><code>$this-&gt;load-&gt;model('cliente_model', 'client');
  
  
  $clientInfo = $this-&gt;client-&gt;getInfo($id);      
  
  $this-&gt;email-&gt;from('myemail@gmail.com', 'Demo'); 
  $this-&gt;email-&gt;to($clientInfo);  
  
  $this-&gt;email-&gt;subject('Email Test'); 
  $this-&gt;email-&gt;message('your user is '.$clientInfo.' and your password is '.$clave);   
  
  $this-&gt;email-&gt;send(); 
  </code></pre>
  
  <p>and I need some help here, I can get the email and it can send it perfectly but in the message I need to send the password also and I don't know how I can get it from the model.</p>
  
  <p>thanks in advance!</p>