Receiving Mails

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
ponteprimo
Posts: 8
Joined: 10 Mar 2006, 10:06
Contact:

Receiving Mails

Post by ponteprimo »

Hello guys,
I have got several project, each with "Chief project" (CP) and "Developers", etc ...
I want CP receive mail, for their assigned projects only, when action is done on demand ( creation, assignment, etc ...).
Is it a built-in functionality ? Should i do something ?
At now, only administrators receive mail, because i add some code in the file core / email.api in function : function email_collect_recipients( $p_bug_id, $p_notify_type ) :

Code: Select all

# --------------------------------------------------------------------- DEBUT
# Ajout BPO - Juin 2005 - En cas d'ajout de demande, on envoi 
# systematiquement un mail aux administrateurs
# On va donc ajouter dans la table memoire,
# les ID des administrateurs ( Acces Level = 90 )
# ---------------------------------------------------------------------------
if(strcmp($p_notify_type,"new")==0)
   {
   $t_mantis_user_table = config_get( 'mantis_user_table' );
   $query  = "SELECT DISTINCT id FROM $t_mantis_user_table 
                   WHERE `access_level` > 89";
   $result = db_query   ( $query  );
   $count  = db_num_rows( $result );
   for ( $i=0 ; $i < $count ; $i++ ) 
      {
      $t_user_id = db_result( $result, $i );
      if(strcmp(auth_get_current_user_id(),$t_user_id)<>0)
         {
         $t_recipients[$t_user_id] = true;
         }
      }
   }
# --------------------------------------------------------------------- FIN
My tests : I have created a secondary yahoo adress for each tested user ( Admin, CP, developer, demander ). Only admin receive.
For each account, mail receiving options are correct.

Do you have idee for this problem ? Thanks.
leblancma
Posts: 37
Joined: 09 Jan 2006, 15:22
Location: Canada
Contact:

Post by leblancma »

Have you tried re-configuring your email notifications for the individual projects under the menu "Manage" » "Manage Configuration" » "Email Notifications"

Regards,

Maurice
Post Reply