Email notification to a list of comma separated email domains
Release notes
Problem to solve
As administrator, I want to be able to email notification to a subset of my GitLab users based on their email domain. For instance, email notification to all users whose email address is in company1.corporate.com and/or company22.corporate.com domain.
Presently, on GitLab email notification page (Admin Area > Email Notification - see attached file), an administrator selects as recipients a group, a project, or all groups and projects.
However, sometimes I need to email notification to a subset of users independently of which groups and/or projects the users are member of.
My organization is made of several independent units and email address is based on the unit the user is staff of. So email addresses are user_x@company1.corporate.com, user_y@company22.corporate.com, and so on. When I need to email notification to GitLab users of specific independent unit(s), I do the following:
- Extract via GitLab API the email addresses of all users.
- Select all relevant recipients
- Create a mailing list.
- Email notification to recipients on the mailing list.
It would be very useful and less time consuming if I could specify email domain(s) as recipient when emailing notification from GitLab.
Intended users
GitLab administrators.
User experience goal
Administrator should be able to use GitLab email capability to email notification to a group of users based on email domain.
Let's say an organization has the following email domains: corporate.com, company1.corporate.com, company22.corporate.com, company333.corporate.com. Then:
- I specify 'corporate.com' as recipient if I want email notification to all GitLab users.
- I specify 'company1.corporate.com' as recipient if I want to email notification to GitLab users of company1.
- I specify 'company22.corporate.com, company333.corporate.com' as recipient if I want to email notification to GitLab users of company22 and company333.
Proposal
on GitLab email notification page (Admin Area > Email Notification - see attached file), add a field that allows to enter a comma separated list of email domains as recipients.