@model MailSender.Models.MailModel @{ ViewBag.Title = "Mail Sender"; }

Send Mail

@if(ViewData.ContainsKey("mailErr")){

Error: @ViewData["mailErr"]

} @using (Html.BeginForm("Index", "Home", FormMethod.Post)) {
@Html.LabelFor(i => i.Subject, new { @class = "label-form" }) @Html.EditorFor(i => i.Subject, new { htmlAttributes = new { @class = "form-control", @placeholder = "Subject" } })
@Html.LabelFor(i => i.EMailTo, new { @class = "label-form" }) @Html.EditorFor(i => i.EMailTo, new { htmlAttributes = new { @class = "form-control", @placeholder = "To" } })
@Html.LabelFor(i => i.Content, new { @class = "label-form" }) @Html.EditorFor(i => i.Content, new { htmlAttributes = new { @class = "form-control", @placeholder = "Body" } })
}