Commit 9b3fabcc9a56fbf1840d04bf3dd42bc693317ec9
1 parent
a8e4fb61
Exists in
master
and in
4 other branches
mail host url to email.yml
Showing
2 changed files
with
8 additions
and
7 deletions
Show diff stats
app/mailers/notify.rb
| 1 | 1 | class Notify < ActionMailer::Base |
| 2 | - default_url_options[:host] = "gitlabhq.com" | |
| 3 | - default from: "notify@gitlabhq.com" | |
| 2 | + default_url_options[:host] = EMAIL_OPTS["host"] | |
| 3 | + default from: EMAIL_OPTS["from"] | |
| 4 | 4 | |
| 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", :from => EMAIL_OPTS["from"]) | |
| 8 | + mail(:to => @user.email, :subject => "gitlab | Account was created for you") | |
| 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", :from => EMAIL_OPTS["from"]) | |
| 16 | + mail(:to => @user.email, :subject => "gitlab | New Issue was created") | |
| 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} ", :from => EMAIL_OPTS["from"]) | |
| 23 | + mail(:to => @user.email, :subject => "gitlab | #{@note.project.name} ") | |
| 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} ", :from => EMAIL_OPTS["from"]) | |
| 31 | + mail(:to => @user.email, :subject => "gitlab | #{@note.project.name} ") | |
| 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} ", :from => EMAIL_OPTS["from"]) | |
| 39 | + mail(:to => @user.email, :subject => "gitlab | #{@note.project.name} ") | |
| 40 | 40 | end |
| 41 | 41 | end | ... | ... |
config/email.yml