[Zope] File as EMail List
Casey Duncan
cduncan@kaivo.com
Mon, 12 Mar 2001 09:35:58 -0700
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
`------------------>