Added the ability to sepcify a username in the email notification settings for external MTA's. We have had to add a new option called Email Sender because of this. #78

This commit is contained in:
tidusjar 2016-03-24 11:31:49 +00:00
parent 0b48627ba1
commit 2d016315c7
4 changed files with 13 additions and 3 deletions

View file

@ -101,7 +101,7 @@ namespace PlexRequests.Services.Notification
IsBodyHtml = true,
To = { new MailAddress(Settings.RecipientEmail) },
Body = $"Hello! The user '{model.User}' has requested {model.Title}! Please log in to approve this request. Request Date: {model.DateTime.ToString("f")}",
From = new MailAddress(Settings.EmailUsername),
From = new MailAddress(Settings.EmailSender),
Subject = $"Plex Requests: New request for {model.Title}!"
};
@ -133,7 +133,7 @@ namespace PlexRequests.Services.Notification
IsBodyHtml = true,
To = { new MailAddress(Settings.RecipientEmail) },
Body = $"Hello! The user '{model.User}' has reported a new issue {model.Body} for the title {model.Title}!",
From = new MailAddress(Settings.EmailUsername),
From = new MailAddress(Settings.RecipientEmail),
Subject = $"Plex Requests: New issue for {model.Title}!"
};