sending query output as an attachment
Hi, I am developing a product in which a output report (tabular form with data) is produced in result of a query. I have to send that report to different people through the mail facility available in zope as an attachment. So kindly guide me how can i send the output report as an attachment.If it can be through dtml tags or python module etc kindly write those methods for me. Waiting for your reply Thanks, Bye, jacintha
This is what we do <dtml-sendmail mailhost="MailHost"> To:<dtml-var to > From:<dtml-var from > Subject: <dtml-var subject> <dtml-mime type=text/plain encode=7bit> <!--#var comments--> <dtml-boundary type="application/pdf; name=jsp-syntax.pdf" disposition="attachment; filename=EquipmentOrder.pdf" encode=base64><dtml-in "PrintServiceOrder.PrintPdfs.fileValues(fileName)"><dtml-var "_['sequence-item'].getObject()"></dtml-in></dtml-mime> </dtml-sendmail> Dan jacintha menezes wrote:
Hi, I am developing a product in which a output report (tabular form with data) is produced in result of a query. I have to send that report to different people through the mail facility available in zope as an attachment. So kindly guide me how can i send the output report as an attachment.If it can be through dtml tags or python module etc kindly write those methods for me.
Waiting for your reply Thanks, Bye, jacintha
Hi, Thanks for your response. I think in the dtml tags you sent, we have store the attachment to be sent as a file right ?. How to store the output of query in zope(eg: output details of employee) as a file & then send it as an attachment.Is it possible to send the output report as an attachment without storing it as a file ? if so, please tell me how ?. waiting for your reply Thanks, bye, jacintha
participants (2)
-
Daniel Rusch -
jacintha menezes