[Zope-dev] MIME Tools

Jason Spisak webmaster@mtear.com
Tue, 06 Apr 1999 11:35:34 -0400


I love this attatchment capability!
I am a mime newbie so I'm not sure how to tell the mail-server that the
attatchment is html and then actually have it come accross that way. 
The code below send fine, and it shows up as an /text/html mime
atatchment in a Netscape 4.08 browser, but the name of the attatchment
is "Part 1.2" and no 'body' of the mail message comes accross.  Also
when I view tha attatchment, it is scrambled beyond recognition.  I've
tried 7bit, base64 encodings.  How does this mime beast work exactly?

<psuedo code>

<!--#sendmail smtphost="mail.foo.com"-->
From:<<!--#var email_from-->>
Subject:<!--#var email_subject-->
To:<<!--#var email_to-->>
<!--#mime type=text/html-->

Attatchments:
<!--#boundary type=text/html disposition=attatchment--><!--#var
"REQUEST['attatchment'].read()"--><!--#/mime-->
<!--#var email_body-->
<!--#var email_signature-->
<!--#/sendmail-->

</psuedo code>


Thanks in advance!
-- 
Jason Spisak
webmaster@mtear.com