Re: [Zope] image attachments in dtml-sendmail and dtml-mime
Matt writes: > > To: Feedback Recipient <[EMAIL PROTECTED]> > From: Zope Feedback Form <[EMAIL PROTECTED]> > Subject: Feedback from the web > > Feedback from : Matt > Comments: > > > "paris.data"> > > > You are aware, that the generated message is not MIME conformant? You should use immediately in the message header and use to generated the various message parts. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] image attachments in dtml-sendmail and dtml-mime
Thanks Kapil, that works brilliantly, I didn't see a 'data' member in the quick reference and certainly didn't see a data() method which I was expecting. I guess I should be looking at the source. The following is what I ended up with To: Feedback Recipient <[EMAIL PROTECTED]> From: Zope Feedback Form <[EMAIL PROTECTED]> Subject: Feedback from the web Feedback from : Matt Comments: Giving the mime tag a name and setting encoding to base64 made it a nicer experience at the other end. thanks Matt Bion Kapil Thangavelu wrote: > spoke to soon.. > > replace > with > > Kapil > > Matt wrote: > > > > I have benn having a problem with attaching images to a dtml-sendmail. > > The following is my dtml code : > > > > > > To: Feedback Recipient <[EMAIL PROTECTED]> > > From: Zope Feedback Form <[EMAIL PROTECTED]> > > Subject: Feedback from the web > > > > Feedback from : Matt > > > > > > > > > > > > > > "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 > > > > 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 > > > > ___ > > Zope maillist - [EMAIL PROTECTED] > > http://lists.zope.org/mailman/listinfo/zope > > ** No cross posts or HTML encoding! ** > > (Related lists - > > http://lists.zope.org/mailman/listinfo/zope-announce > > http://lists.zope.org/mailman/listinfo/zope-dev ) > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] image attachments in dtml-sendmail and dtml-mime
spoke to soon.. replace with Kapil Matt wrote: > > I have benn having a problem with attaching images to a dtml-sendmail. > The following is my dtml code : > > > To: Feedback Recipient <[EMAIL PROTECTED]> > From: Zope Feedback Form <[EMAIL PROTECTED]> > Subject: Feedback from the web > > Feedback from : Matt > > > > > > > "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 > > 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 > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] image attachments in dtml-sendmail and dtml-mime
Matt wrote: > > I have benn having a problem with attaching images to a dtml-sendmail. > The following is my dtml code : > > > To: Feedback Recipient <[EMAIL PROTECTED]> > From: Zope Feedback Form <[EMAIL PROTECTED]> > Subject: Feedback from the web > > Feedback from : Matt > > > > > > > "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 > > 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. i don't have much experience with the mime-tags but, if you're problem seems to be that you want the binary data of the image. when the dtml tag renders its just dropping a string link to the Image. what you want here is (i think) the binary data that represents the image. hmmm... looking through the source of Image.py i don't see a web accessible manner to get this info:( another option is to set the mime on the email to text/html and send the image as a link. Kapil ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] image attachments in dtml-sendmail and dtml-mime
I have benn having a problem with attaching images to a dtml-sendmail. The following is my dtml code : To: Feedback Recipient <[EMAIL PROTECTED]> From: Zope Feedback Form <[EMAIL PROTECTED]> Subject: Feedback from the web Feedback from : Matt "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 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 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )