29 lines
991 B
Plaintext
29 lines
991 B
Plaintext
|
@model MailSender.Models.MailModel
|
||
|
@{
|
||
|
ViewBag.Title = "Mail Sender";
|
||
|
}
|
||
|
<h2>Send Mail</h2>
|
||
|
|
||
|
@if(ViewData.ContainsKey("mailErr")){
|
||
|
<h3>Error: @ViewData["mailErr"]</h3>
|
||
|
}
|
||
|
|
||
|
@using (Html.BeginForm("Index", "Home", FormMethod.Post))
|
||
|
{
|
||
|
<div class="form-group">
|
||
|
@Html.LabelFor(i => i.Subject, new { @class = "label-form" })
|
||
|
@Html.EditorFor(i => i.Subject, new { htmlAttributes = new { @class = "form-control", @placeholder = "Subject" } })
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
@Html.LabelFor(i => i.EMailTo, new { @class = "label-form" })
|
||
|
@Html.EditorFor(i => i.EMailTo, new { htmlAttributes = new { @class = "form-control", @placeholder = "To" } })
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
@Html.LabelFor(i => i.Content, new { @class = "label-form" })
|
||
|
@Html.EditorFor(i => i.Content, new { htmlAttributes = new { @class = "form-control", @placeholder = "Body" } })
|
||
|
</div>
|
||
|
|
||
|
<input type="submit" value="Send" />
|
||
|
}
|