Hi, Anyone used a file as an email list? I would like to create a folder with lists in. I have got the <dtml-sendmail ...> bit working but would now like to place this in a <dtml-in> block. I therefore need to convert a file into a list of recipients? Any ideas? Thanks David Kyte
David Kyte wrote:
Hi,
Anyone used a file as an email list?
I would like to create a folder with lists in. I have got the <dtml-sendmail ...> bit working but would now like to place this in a <dtml-in> block.
I therefore need to convert a file into a list of recipients?
Any ideas?
Thanks
David Kyte
If the file lives on your filesystem outside of Zope, an external method like: def read_email_file(): return open('/my/file/path').readlines() could be fed directly to dtml-in. -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------>
participants (2)
-
Casey Duncan -
David Kyte