Skip to content
Snippets Groups Projects
Commit 9a7cd8a0 authored by Aric Buerer's avatar Aric Buerer
Browse files

Add setting to disable all outgoing mail

parent 67052879
No related branches found
No related tags found
No related merge requests found
......@@ -917,3 +917,16 @@
```ruby
Notify.test_email('destination_email@address.com', 'Message Subject', 'Message Body').deliver_now
```
## Disable all outgoing email
NOTE: **Note:**
This will disable **all** outgoing email from your GitLab instance, including but not limited to notification emails, direct mentions, and password reset emails.
In order to disable **all** outgoing email, you can edit or add the following line to `/etc/gitlab/gitlab.rb`:
```ruby
gitlab_rails['gitlab_email_enabled'] = false
```
Run `sudo gitlab-ctl reconfigure` for the change to take effect.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment