Sending Email with multiple attachments

In Codeigniter We Can Attach multiple Emails with single query

First We Have To Load Email Library

$this->load->library('email');
$this->load->helper('path');
$this->load->helper('directory'); 

//setting path to attach files 
$path = set_realpath('assets/your_folder/');
$file_names = directory_map($path);

    $this->email->clear(TRUE);
    $this->email->to($address);
    $this->email->from('[email protected]');
    $this->email->subject('Here is your info '.$name);
    $this->email->message('Hi  Here is the info you requested.'); 

    foreach($file_names as $file_name)
    {

      $this->email->attach($file_name);

    }

    $this->email->send();