writeBody($message, 0, $final_length, $boundary); // now if we have a real live stream, send the message // if ($stream) { sqimap_append ($stream, $folder, $final_length); $this->preWriteToStream($header); $this->writeToStream($stream, $header); $this->writeBody($message, $stream, $raw_length, $boundary); sqimap_append_done ($stream, $folder); } } /* to do: finishing the imap-class so the initStream function can call the imap-class */ }