On 02/21/2004 01:39 AM, Ryan A wrote:
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...:-(
Yes, IMAP extension is optional but fortunately it is not necessary for what you want.
Just try this other class that comes with an example to do exactly what you want. Check the HTML message example as it explains how to compose and send a message with an HTML part and an alternative text part. It may also embed any images or attachment files if you want:
http://www.phpclasses.org/mimemessage
--
Regards, Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php