Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
728f0c20
Commit
728f0c20
authored
Oct 17, 2013
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add smtp settings override in smtp_settings sample file.
parent
318f96a4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
config/initializers/smtp_settings.rb.sample
config/initializers/smtp_settings.rb.sample
+6
-6
No files found.
config/initializers/smtp_settings.rb.sample
View file @
728f0c20
# To enable smtp email delivery for your GitLab instance do next:
# To enable smtp email delivery for your GitLab instance do next:
# 1. Change config/environments/production.rb to use smtp
# 1. Rename this file to smtp_settings.rb
# config.action_mailer.delivery_method = :smtp
# 2. Edit settings inside this file
# 2. Rename this file to smtp_settings.rb
# 3. Restart GitLab instance
# 3. Edit settings inside this file
# 4. Restart GitLab instance
#
#
if Gitlab::Application.config.action_mailer.delivery_method == :smtp
if Rails.env.production? do
Gitlab::Application.config.action_mailer.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
ActionMailer::Base.smtp_settings = {
address: "email.server.com",
address: "email.server.com",
port: 456,
port: 456,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment