MIMETools question... again
Hello. Many thanks to all for your answers on my recent question about MIMETools. Really, tag <!--#boundary --> is implemented now, and works, but... I need sending mail with multiple file attachement... Combination of several tags <!--#boundary --> working... When I tryed insert tag <!--#boundary --> into tag <!--#in -->, Zope said: "Unexpected tag, for tag <!--#boundary ..." Because <!--#boundary --> is only meaningful in the context of the <!--#mime --> tag. We have loss of this context? Below example of my stupid code. [ --- begin code snippet ---] <!--#mime type=text/plain encode=7bit --> just example text... <!-- #in "files_to_mail" --> <!--#boundary type=application/octet-stream disposition=attachment encode=base64--> <!--#var sequence-item --> <!-- #/in --> <!--#/mime --> [ --- end code snippet ---] Any ideas? Dima.
----- Original Message ----- From: Dmitry Ishutkin <dima@interbit.ru>
Many thanks to all for your answers on my recent question about MIMETools. Really, tag <!--#boundary --> is implemented now, and works, but... I need sending mail with multiple file attachement... Combination of several tags <!--#boundary --> working... When I tryed insert tag <!--#boundary --> into tag <!--#in -->,
Sadly, the way DTML tags work right now, this isn't possible. Since 'boundary' is part of the 'mime' tag, like 'else' is part of 'if', you can't put it inside another tag. The only workaround I can think of is pretty nasty; look at the source for MIMETag and use the MimeWriter class directly. It's not that bad, unless you don't know Python... Cheers, Evan @ digicool & 4-am
participants (2)
-
Dmitry Ishutkin -
Evan Simpson