[Zope-CMF] Send email to all CMF members

Robert Rottermann robert@redcor.ch
Sun, 2 Dec 2001 09:28:52 +0100


I am using the following code (which I somehow got from runyaga)
Robert
<div tal:condition=
"python: here.portal_membership.checkPermission('Manage_users',
here.Members)">
    <table tal:define="properties here/portal_memberdata/propertyIds">
    <tr>
        <td>
        </td>
    </tr>
    <tr>
        <td>
            id
        </td>
        <td tal:repeat="property properties">
            <span tal:replace="property">email</span>
        </td>
    </tr>
    <tr tal:repeat="member here/portal_membership/listMembers">
        <td tal:content="member">
            runyaga
        </td>
        <td tal:define="prop python:member.getProperty(property, None)">
            <span tal:replace="prop">runyaga@slack.com</span>
        </td>
    </tr>
    </table>
</div>


----- Original Message -----
From: "Todd Graham" <tgraham@speakeasy.net>
To: <Zope-CMF@zope.org>
Sent: Sunday, December 02, 2001 6:13 AM
Subject: [Zope-CMF] Send email to all CMF members


> Hello all,
>
> I've been searching trough the archives and trying to figure out how to
send
> email to cmf members when a new news item is added.  I've got the email
> functionality working, I just don't now how to return a list of member's
> email addresses.
>
> Thanks in advance.
>
> Todd
>
>
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
requests
>