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
commit 2d016315c7
4 changed files with 13 additions and 3 deletions

View file

@ -38,9 +38,10 @@ namespace PlexRequests.UI.Validators
RuleFor(request => request.EmailPort).NotEmpty().WithMessage("You must specify a Port.");
RuleFor(request => request.RecipientEmail).NotEmpty().WithMessage("You must specify a Recipient.");
RuleFor(request => request.RecipientEmail).EmailAddress().WithMessage("You must specify a valid Recipient.");
RuleFor(request => request.EmailUsername).EmailAddress().WithMessage("You must specify a valid Username.");
RuleFor(request => request.EmailUsername).NotEmpty().WithMessage("You must specify a Username.");
RuleFor(request => request.EmailPassword).NotEmpty().WithMessage("You must specify a valid password.");
RuleFor(request => request.EmailSender).EmailAddress().WithMessage("You must specify a valid Email for the email sender.");
RuleFor(request => request.EmailSender).NotEmpty().WithMessage("You must specify a Email Sender.");
}
}
}

View file

@ -59,6 +59,12 @@
</div>
<div class="form-group">
<label for="EmailSender" class="control-label">Email Sender</label>
<div>
<input type="text" class="form-control form-control-custom " id="EmailSender" name="EmailSender" value="@Model.EmailSender">
</div>
</div>
<div class="form-group">
<label for="RecipientEmail" class="control-label">Email Recipient</label>
<div>
@ -66,6 +72,8 @@
</div>
</div>
<div class="form-group">
<label for="EmailUsername" class="control-label">Username</label>
<div>