can anyone help with this? I'm using a mime class based out of S. Hughes' SAMS book "PHP Developer's cookbook". ...running PHP 4.0.3pl1 on NT 2000 IIS 5... I've modified the MIME class using the RFC 1521 spec and an article by Kartic Krishnamurthy on phpbuilder.com. It looks to me like the class is generating the MIME headers correctly, as in this example: From: 'Alex (the Great)' <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: re: Bucephalus MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="simpleboundary"; Content-Transfer-Encoding: 7bit This is a MIME Encoded Message --simpleboundary Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi PHP, Attached you will find my horse, Bucephalus', pedigree chart and photo. Alex --simpleboundary Content-Type: text/html; name=""; Content-Transfer-Encoding: base64 Content-Description: "html email" <.....html code here...> --simpleboundary-- obviously, my "simpleboundary" is an md5 hash plus some extra misc chars, just like in the article and book referenced above. the problem is(?) the mail() function call in the MIME class' send_mail() method. It is failing on messages seemingly due to length. when the total length of the mime message is approximately 4K the mail() function starts acting erraticly. Up to that point it works fine. At some point near 4K, i don't know what length exactly, the mail function returns "Failed to send ... on line x". I've been playing with the message length using simply a substr(). It seems another 40 bytes more than the length that causes the "failed..." msg. and the mail() function just hangs and the script stops after a minute or two with nothing further displayed. anyone else seen this? either I'm missing something about MIME message length or something is up with PHP on windows 2000. or neither. a MIME class analogous to the one I'm using can be found at: http://www.phpbuilder.com/columns/kartic20000807.php3?page=1 thanks all, -tenacious -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]