Incomplete file attachment using class HTML.MIME.MAIL + CLASS.SMTP
| From: | php at brazilinfo dot com | Date: | Tue, 12 Sep 2000 19:52:36 +0000 |
| Subject: | Incomplete file attachment using class HTML.MIME.MAIL + CLASS.SMTP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-16431@lists.php.net to get a copy of this 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();