Wednesday, February 18, 2015

Clear attachments from previous email when sending with Codeigniter

I had the problem of sending multiple emails with attachment and having the attachment from a previous email included in the next email when using the codeigniter framework. Even though I searched the manual and included the clear option, the problem still persists. After doing some research, I found out that I had to include the TRUE option in the clear function: $this->email->clear(TRUE); This is what solved it for me.

1 comment:

Nagaraj said...

Helped me, Thank you So much