'How to send a mail from gitlab after any activity?

We are using gitlab for CI/CD. my colleagues need pipeline, merge request, commit related status. How should I receive the mails from them and how did they receive my activity through mails? We are using outlook and google account. If we use SMTP? How should I deploy that? by giving everyone's mail.



Solution 1:[1]

Are you using self-managed or SaaS? If the first one, start with configuring SMTP settings

Then, read email notifications documentation

If you use SaaS (gitlab.com), only the second one will be relevant to you.

If this does not help, please ask more specific question (explaining what you try, what didn't work) after you read these docs.

Solution 2:[2]

You can always create an MS teams team with yourself and the people who need to be notified, irrespective of if they are gitlab users. Take the mail id of that team and add it to your gitlab profile, and for this project, use custom notification and use that email id for the specific events. Everyone involved will get the mails.

If you are using google accounts, create a google group and use the group email id.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Lukasz Korbasiewicz
Solution 2 Avi Bis