can we give path of the file to be sent as an attachment
Hi, Thanks for your mail. I have seen the tags of sendmail & mime.Kindly let me know whether we can send a file stored in the hard disk as an attachment by giving it's path. I shall send the tags , kindly modify it wherever necessary.I don't know how & where actually to give the path. <dtml-sendmail mailhost="MailHost"> To:jacintha.menezes@wipro.com From:jacintha.menezes@wipro.com Subject: hi <dtml-mime type=text/plain encode=7bit> good morning !. <dtml-boundary type="application" disposition="attachment; filename=C:\WINDOWS\Personal\file.doc" encode=base64> <dtml-var "file"> <dtml-boundary type="application" disposition="attachment; filename=C:\WINDOWS\Personalwipro1.jpg" encode=base64> <dtml-var "wipro1"></dtml-mime> </dtml-sendmail> e.g when i run this it gives error value : file waiting for your immediate reply Thanks, bye, jacintha
jacintha menezes writes:
Hi, Thanks for your mail. I have seen the tags of sendmail & mime.Kindly let me know whether we can send a file stored in the hard disk as an attachment by giving it's path. No, you can't....
.... unless, you made it accessable from inside Zope. You have various options: * the excellent "LocalFS" product * the "ExternalFile" product (which probably is excellent, too, but I do not know it personally) * an external method returning the content of a file giving its filename (search the list archive to find one - with the associated *security* warning!) Dieter
participants (2)
-
Dieter Maurer -
jacintha menezes