Hello, on 03/16/2007 12:16 PM Angelo Zanetti said the following: > Hi guys. > > Im using the HTML Mime Mail > <http://www.phpguru.org/static/mime.mail.html> class from phpguru.org. > Anyway I've written a few scripts that use the class to attach files to > it. These files are HTML reports but Im not sure what MIME content-type > to use. > > The content type I use to for the attachments is text/html. But Im not > sure that the content type for the email itself should be plain/text as > this just displays the HTML attachment as garbage in the body text.
You should never send HTML only messages, as most spam filters will discard your message. Usually you need to have an alternative text part like the messages composed by normal mail clients. -- Regards, Manuel Lemos Metastorage - Data object relational mapping layer generator http://www.metastorage.net/ PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php