decoding pdf string and sending it by codeigniter email functionality
I changed two lines of Codeigniter Email class, so that I can send base64 string as attachments easily.
https://github.com/aqueeel/CI-Base64EmailAttach
Download and replace your email class with this.
Initialize config array as:
$config['_encoding'] = 'base64';$this->load->library('email',$config);
Call the attachmnet function with mime type:
$this->email- >attach($base64,'attachment','report.pdf','application/pdf');.