HTML email problem: IMAP

From: Date: Sat, 21 Feb 2004 04:39:25 +0000
Subject: HTML email problem: IMAP
Groups: php.general 
Request: Send a blank email to php-general+get-178426@lists.php.net to get a copy of this message
Hi, I downloaded a class from php classes called "clssendmail", the class was working on a different server but now I get this error when I try to use it: "Call to undefined function: imap_8bit() in............." The class is basically to send an email in 2 parts, plain text and HTML...if the person has html off or cannot view html email then the plain text one will display else the HTML part will display. After googleing I see that sometimes PHP is not compiled with Imap_8bit which causes this problem...:-( This is the troublesome part: /////// function addHtmlBodyPart($html) { $this->bodyParts["text/html"]="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<html><head><meta http-equiv=Content-Type content=\"text/html; charset=iso-8859-1\"><META content=\"MSHTML 6.00.2800.1276\" name=GENERATOR></head><body>".imap_8bit($html)."</body></html>"; } ///// Any work around to this problem or any idea of another class that does what this is supposed to do and will work on all servers? I also downloaded manuel lemos collection of mime classes but thats toooo damn powerful for my little task..couldnt understand half of what was in there. Any help appreciated. Cheers. -Ryan

« previous php.general (#178426) next »