You are here: Home / Documentation / How To's / How to get the email addresses of members of a group, using collective.easytemplate

How to get the email addresses of members of a group, using collective.easytemplate

by nguyen — published Feb 13, 2012 12:10 PM, last modified Aug 16, 2016 10:50 AM

The expression to get the email addresses of all members of a group, in this case a group with the ID 'Registrar':

{% for m in portal.portal_groups.getGroupMembers('Registrar') %} {{  portal.portal_membership.getMemberById(m).getProperty('email', None) }}, {% endfor %}
Navigation