Mail to all users

Description
mathiaskrause
Posts: 35
Joined: Mon Apr 18, 2011 8:26 am

Mail to all users

Postby mathiaskrause » Tue Oct 11, 2011 6:11 am

Btw: Is there a way to generate a kind of administration mail, which will be sent to all the users of polarion? That might be very helpful!

NickEntin
Posts: 472
Joined: Tue Oct 24, 2006 10:27 am
Location: Polarion Software GmbH, Stuttgart
Contact:

Re: Mail to all users

Postby NickEntin » Tue Oct 11, 2011 8:00 am

Well, I'm delegating your question to our experts. May be there is a generic solution out-of-the-box in Polarion.
AFAIK by us internally the users of Polarion are defined in LDAP group anyway, then you just create a mailing list to the LDAP users (principally has nothing to do with Polarion :-))

Best regards,
Nick

mathiaskrause
Posts: 35
Joined: Mon Apr 18, 2011 8:26 am

Re: Mail to all users

Postby mathiaskrause » Wed Oct 12, 2011 6:11 am

Would be great, if there'll be a possibility to do that direct in polarion ... (maybe from Administration) ...

jandlj
Posts: 20
Joined: Mon Aug 23, 2010 11:40 am
Location: Polarion Software, Prague
Contact:

Re: Mail to all users

Postby jandlj » Wed Oct 12, 2011 1:39 pm

Hello,
this is an improvement request waiting for implementation - "DPP-1540 - Send email (announcement) to all users of some group/role"

Regards,
Jiri Jandl

hendriksen
Posts: 1
Joined: Thu Oct 13, 2011 11:36 am

Re: Mail to all users

Postby hendriksen » Thu Oct 13, 2011 11:40 am

Hello,

here is script to get a string with the email addresses of all registered users:

Code: Select all

#set($usrList = $projectService.getUsers())

#set($emailList = "")

#foreach($usr in $usrList)
  #if ($usr.getEmail() != "")
    #set($emailList = "$emailList$usr.getEmail();")
  #end
#end

$emailList


Hope this helps.

Regards
Andre

pitzalis
Posts: 15
Joined: Mon Jun 04, 2007 8:58 am
Location: Italy

Re: Mail to all users

Postby pitzalis » Fri Oct 14, 2011 4:16 pm

I can suggest this simple solution that I use to send a mail to all project team members:

Add this velocity code inside the project home wiki page:

Code: Select all

#set( $projectid="$!doc.getProject($doc.getSpace())")
#set( $project=$trackerService.getProjectsService().getProject($projectid) )
#set( $users=$trackerService.getProjectsService().getProjectUsers($project) )
#set( $mailTo = "mailto:" )
#foreach( $user in $users )
  #if( $user.email != "" )
    #set( $mailTo = "$mailTo$user.email," )
  #end
#end
#set( $mailTo = "$mailTo?subject=Polarion project \"$project.name\"" )
<a href="$mailTo">{image:email.gif}&nbsp;&nbsp;Email to $users.size() team members.</a>

where email.gif is an e-mail icon.

Bye,
GP

mathiaskrause
Posts: 35
Joined: Mon Apr 18, 2011 8:26 am

Re: Mail to all users

Postby mathiaskrause » Tue Oct 18, 2011 1:16 pm

Hey ...
thank you, for this solution. Works fine ...


Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 5 guests