CodeIgniter Forums
Email Class Attachments and Clear() - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Email Class Attachments and Clear() (/thread-31575.html)



Email Class Attachments and Clear() - El Forum - 06-24-2010

[eluser]Unknown[/eluser]
Hi,

Not sure if this is a bug, but calling $this->email->clear(); does not seem to clear the attachments.


Email Class Attachments and Clear() - El Forum - 06-24-2010

[eluser]mddd[/eluser]
Have you read the manual fully?
Quote:If you set the parameter to TRUE any attachments will be cleared as well:
Code:
$this->email->clear(TRUE);

It is on purpose; if you need to send the same attachment to multiple people, the file doesn't have to be read every time.


Email Class Attachments and Clear() - El Forum - 06-24-2010

[eluser]Unknown[/eluser]
nvm, replied too fast, thnx