1) { $this->contentType = trim($ctparts[0]); } foreach ($ctparts as $ctpart) { if (strstr($ctpart,"name=")) { $filename = split("=",$ctpart); $this->fileName = str_replace("\"","",$filename[1]); } } } $this->data = trim($attachment['content']); } } ?>