Commit 21d566ea76bbdbfd943b946f714eac1cfd94546b
Exists in
master
and in
4 other branches
Merge branch 'master' of dev.gitlabhq.com:gitlabhq
Showing
3 changed files
with
7 additions
and
5 deletions
Show diff stats
app/mailers/notify.rb
| ... | ... | @@ -5,7 +5,7 @@ class Notify < ActionMailer::Base |
| 5 | 5 | def new_user_email(user, password) |
| 6 | 6 | @user = user |
| 7 | 7 | @password = password |
| 8 | - mail(:to => @user.email, :subject => "gitlab | Account was created for you") | |
| 8 | + mail(:to => @user.email, :subject => "gitlab | Account was created for you", :from => EMAIL_OPTS["from"]) | |
| 9 | 9 | end |
| 10 | 10 | |
| 11 | 11 | def new_issue_email(issue) |
| ... | ... | @@ -13,14 +13,14 @@ class Notify < ActionMailer::Base |
| 13 | 13 | @project = issue.project |
| 14 | 14 | @issue = issue |
| 15 | 15 | |
| 16 | - mail(:to => @user.email, :subject => "gitlab | New Issue was created") | |
| 16 | + mail(:to => @user.email, :subject => "gitlab | New Issue was created", :from => EMAIL_OPTS["from"]) | |
| 17 | 17 | end |
| 18 | 18 | |
| 19 | 19 | def note_wall_email(user, note) |
| 20 | 20 | @user = user |
| 21 | 21 | @note = note |
| 22 | 22 | @project = note.project |
| 23 | - mail(:to => @user.email, :subject => "gitlab | #{@note.project.name} ") | |
| 23 | + mail(:to => @user.email, :subject => "gitlab | #{@note.project.name} ", :from => EMAIL_OPTS["from"]) | |
| 24 | 24 | end |
| 25 | 25 | |
| 26 | 26 | def note_commit_email(user, note) |
| ... | ... | @@ -28,7 +28,7 @@ class Notify < ActionMailer::Base |
| 28 | 28 | @note = note |
| 29 | 29 | @project = note.project |
| 30 | 30 | @commit = @project.repo.commits(note.noteable_id).first |
| 31 | - mail(:to => @user.email, :subject => "gitlab | #{@note.project.name} ") | |
| 31 | + mail(:to => @user.email, :subject => "gitlab | #{@note.project.name} ", :from => EMAIL_OPTS["from"]) | |
| 32 | 32 | end |
| 33 | 33 | |
| 34 | 34 | def note_issue_email(user, note) |
| ... | ... | @@ -36,6 +36,6 @@ class Notify < ActionMailer::Base |
| 36 | 36 | @note = note |
| 37 | 37 | @project = note.project |
| 38 | 38 | @issue = note.noteable |
| 39 | - mail(:to => @user.email, :subject => "gitlab | #{@note.project.name} ") | |
| 39 | + mail(:to => @user.email, :subject => "gitlab | #{@note.project.name} ", :from => EMAIL_OPTS["from"]) | |
| 40 | 40 | end |
| 41 | 41 | end | ... | ... |
| ... | ... | @@ -0,0 +1 @@ |
| 1 | +from: notify@gitlabhq.com | ... | ... |
config/initializers/load_config.rb