[eluser]TheFuzzy0ne[/eluser]
If you know you're only going to have two file attachments, then you can hard- code it in, but if you want to make your code more robust (which is not a bad thing), you can loop through the attachments and attach them one at a time. The attachments should be the only thing you need to loop over if you're only sending a single email. Everything else should be outside of the loop.
Code:
foreach ($return as &$file)
{
$this->email->attach($file['full_path']);
}
// ...
if ($this->email->send())
{
// Hooray! (Sorry, I get excited easily!)
}
else
{
// Aww... :( (Sorry, I am also easily disappointed...)
}