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:
Ben Halpern 2018-10-16 17:02:02 -04:00 committed by GitHub
parent f9c19f6b81
commit 7d783c2b9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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