[Zope-CMF] plone: send mail to all members

Dieter Maurer dieter@handshake.de
Wed, 3 Jul 2002 20:30:43 +0200


Jan Ulrich Hasecke writes:
 > I want to send either the url or the whole contents of published items
 > via email to all portal-members. Kind of newsletter.
 > 
 > How can I do this?
You ask the Membership tool for a list of member ids,
get their email addresses and use the <dtml-send> tag inside
a <dtml-in> tag to send them the message.

Drawback: your mail system will be a bit stressed, as it is
told to send n single messages.

You can try to send a single message to all members with
one <dtml-send> tag. However, the will expose all member email
addresses.

Finally, you can directly use the MailHosts "send" method
and send the message to all members with a
"To: UndiclosedRecipients" header.


Dieter