Re: Mail() not setting MIME TYPE

From: Date: Wed, 15 Aug 2001 03:01:21 +0000
Subject: Re: Mail() not setting MIME TYPE
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-62749@lists.php.net to get a copy of this message
> $mail = mail("$address", "$subject", "$body", "$headers > \nContent-Type: This line break isn't in the actual source, is it?... That would do what you describe... > text/html; charset=iso-8859-1\nContent-Transfer-Encoding: 64bit" ); > ?> Email was not originally designed for sending anything but text. Everything else has been grafted on afterwards. In fact, sending html email is generally a Bad Idea unless recipients can opt out of it -- Many recipients can't read html email, others throw it away immediately for security reasons, etc. I believe you need to send the HTML as an attachment. See Manuel Lemos' mail class at upperdesign.com (?) to see how that's done. -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#62749) next »