[Zope] image attachments in dtml-sendmail and dtml-mime
Matt
matt.bion@eudoramail.com
Mon, 16 Oct 2000 13:18:47 +1300
I have benn having a problem with attaching images to a dtml-sendmail.
The following is my dtml code :
<dtml-sendmail mailhost="MailHost">
To: Feedback Recipient <matt.bion@eudoramail.com>
From: Zope Feedback Form <matt.bion@eudoramail.com>
Subject: Feedback from the web
Feedback from : Matt
<dtml-mime type=image/jpeg encode=7bit><dtml-var "paris">
</dtml-mime>
</dtml-sendmail>
"paris" is the ID of an image I uploaded into a node inherited when I
action this dtml document, so there are no key errors or similar.
The result in the email I get is :
Feedback from : Matt Comments:
Hello there, this is a sample email message for testing.
Content-Type: multipart/mixed;
boundary="127.0.0.1.500.953.971655250.628.16056"
--127.0.0.1.500.953.971655250.628.16056
Content-Type: image/jpeg
Content-Transfer-Encoding: 7bit
<img src="http://localhost:8080/admin_test/paris" alt="paris"
height="630" width="472" border="0">
--127.0.0.1.500.953.971655250.628.16056--
I understand that the dtml-mime tag is modifying the action of dtml-var
that follows it, but what I want is the actual text coded binary to be
dumped and not a source tag ... i.e. it's an email, not a webpage.
I thought of embedding that in an external method that returns the text
coded binary w.r.t the encoding type placed in the attributes, but was
wondering if there was a method like this already available, and maybe
not just image centric.
Matt Bion