[api] add a flag to the groups_users if we should send mails for them
[api] only send mails to users with email attribute in the groups_users table