CodeIgniter Forums

Full Version: Email Class Attachments and Clear()
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Unknown[/eluser]
Hi,

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

El Forum

[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.

El Forum

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