xclone 0 Newbie Poster

Hello,

We have a customized service desk script which makes use of send-mail to send out emails. But we have had an error with a regular expression function preg_replace for quite a while now. The original developer has left the organization and I am trying to take over but its a little over my head at the moment to figure this bit out. Could someone kindly guide me in the right direction to get this resolved?

The error occurs in a script called mime.inc.php. The line where the error occurs is

 if ($from)
        {
            //$headers = preg_replace("!(from:\ ?.+?[\r\n]?\b)!i", '', $headers);
 Error --->      $headers = preg_replace("!(from:\b?.+?[\n]?\b)!i", '', $headers);
        }
        $this->headers = chop($headers);
        $this->mimeparts[] = '' ;   //Bump up location 0;
        $this->errstr = '';
        return;
    }

Error Message we get is

preg_replace() [function.preg_replace]:Warning: Compilation failed: nothing to repeat at offset 8 in c:\wamp\www\lib\mime.inc.php @ line 90 preg_replace() MIME_mail()

I would be very grateful for any help.

Regards

Alex