Incomplete file attachment using class HTML.MIME.MAIL + CLASS.SMTP

From: Date: Wed, 13 Sep 2000 09:35:41 +0000
Subject: Incomplete file attachment using class HTML.MIME.MAIL + CLASS.SMTP
Groups: php.general 
Request: Send a blank email to php-general+get-16524@lists.php.net to get a copy of this message
Hi, I had a problem which might be related to yours. I used CDONTS to send EMail from ASP and hat to set the MailFormat property of the CDONTS.newmail Object to CdoMailFormatText instead of CdoMailFormatMime. Otherwise the Attachments were truncated to a few bites as you described. However it also depended on the the other mailserver the mail was routed through. On my own Mailsystem it worked and I was always able to receive the attachments with MS Outlook, however at the two companies it did not when using CdoMailFormatMime. One of them used Novel Groupwise. Good Luck, Florian Original Message: Hi, I am currently using Manuel Lemos' SMTP class to send e-mail directly through the SMTP server on my ISP's Windows NT platform since php's mail() function is not working. It works just perfectly. Now I have to send MIME e-mails and started to use a class for this purpose that I found to be very well implemented (MIME.MAIL from Richard Heyes) and which has even a little function for sending the completed MIME message by using Manuel Lemos' SMTP class. My problem is: when running the example and trying to add to the MIME message some image file and another attached file (say a ZIP file), both files come truncated to just a few bytes. The ISP where I am implementing the programs is running PHP4 over NT and IIS. Any help would be greatly appreciated. ---- The classes used are: ** Title.........: HTML Mime Mail class ** Version.......: 1.31 ** Author........: Richard Heyes <richard.heyes@heyes-computing.net> ** Filename......: html_mime_mail.class ** Last changed..: 31/08/2000 ** Notes.........: Based upon mime_mail.class ** by Tobias Ratschiller <tobias@dnet.it> ** and Sascha Schumann <sascha@schumann.cx>. ** See http://www.heyes-computing.net/scripts/ ** for full tar/zip if you haven't got one. class html_mime_mail{ var $mime; var $html; var $body; var $do_html; var $multipart; var $html_text; var $html_images = array(); var $headers = array(); var $parts = array(); -- Florian Clever fc@clever-soft.com http://www.Clever-Software-Solutions.de Some people try to achieve immortality through their work, others through their children. I hope to achieve immortality by not dying. -- Woody Allen

« previous php.general (#16524) next »