Change default <from> in notifymailer mentor emails (#940)
* Change default <from> in notifymailer mentor emails * Change to dev.to for consistency + spec
This commit is contained in:
parent
f9c19f6b81
commit
7d783c2b9f
1 changed files with 2 additions and 2 deletions
|
|
@ -85,13 +85,13 @@ class NotifyMailer < ApplicationMailer
|
|||
@mentee = mentee
|
||||
@mentor = mentor
|
||||
subject = "You have been matched with a DEV mentor!"
|
||||
mail(to: @mentee.email, subject: subject)
|
||||
mail(to: @mentee.email, subject: subject, from: "Liana (from dev.to) <liana@dev.to>")
|
||||
end
|
||||
|
||||
def mentor_email(mentor, mentee)
|
||||
@mentor = mentor
|
||||
@mentee = mentee
|
||||
subject = "You have been matched with a new DEV mentee!"
|
||||
mail(to: @mentor.email, subject: subject)
|
||||
mail(to: @mentor.email, subject: subject, from: "Liana (from dev.to) <liana@dev.to>")
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue