Re: [Zope] Excel spreadsheet attachment in dtml-sendmail

2005-09-01 Thread Chris Withers

Hi Chris,

Seeing the problems you're having, may I suggest you look at using 
python's excellent "email" package in an external method to generate 
these mails rather than suffering with the horrific DTML below?


I think you'd find it much easier to generate the headers needed for 
your faxes, and you can even then use smtplib direct if MailHost is 
tripping you up. You'll also have MUCH better support for encoding 
attachments and building up emails :-)


good luck,

Chris

Chris Larsen wrote:

Never mind.. the dtml-boundary looks like this now.. I guess that
zopelabs.com how-to needs to be updated.. oh well.

 




 

  _  

From: Chris Larsen 
Sent: Wednesday, August 31, 2005 3:10 PM

To: zope@zope.org
Subject: [Zope] Excel spreadsheet attachment in dtml-sendmail

 


Hi again,

Now on to my next problem.. I have tried the below code to send off a
spreadsheet as an attachment and am getting a dat file and a 232B file
that can't be read.

Here's the code from zopelabs.com appropriated to my own info:


To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Subject: some subject

Content-Disposition: inline; filename="ics.xls"





I thought they type was supposed to be application/vend.msexcel
I've tried both ways tho but to no avail.

Thanks in advance,
Chris Larsen






___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce

 http://mail.zope.org/mailman/listinfo/zope-dev )


--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


RE: [Zope] Excel spreadsheet attachment in dtml-sendmail

2005-08-31 Thread Chris Larsen
Title: Excel spreadsheet attachment in dtml-sendmail








Never mind.. the dtml-boundary looks like
this now.. I guess that zopelabs.com how-to needs to be updated.. oh well.

 



 









From: Chris Larsen 
Sent: Wednesday, August 31, 2005
3:10 PM
To: zope@zope.org
Subject: [Zope] Excel spreadsheet
attachment in dtml-sendmail



 

Hi again,

Now on to my next problem.. I have tried the below code to send off a
spreadsheet as an attachment and am getting a dat file and a 232B file that
can’t be read.

Here’s the code from zopelabs.com appropriated to my own info:


To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Subject: some subject

Content-Disposition: inline; filename="ics.xls"

disposition=attachment encode=base64>




I thought they type was supposed to be application/vend.msexcel
I've tried both ways tho but to no avail.

Thanks in advance,
Chris Larsen






___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )