@using PowderCoating.Web.Controllers @model AdminEmailPreviewModel @{ ViewData["Title"] = "Preview Admin Email"; }

Admin Email Wizard

Step 3 of 3: preview one merged sample, then send sequentially.

@Model.EligibleCount ready to send @if (Model.SkippedCount > 0) { @Model.SkippedCount missing email }
Sample Preview
Recipient Sample
@Model.SamplePreview.RecipientName
@Model.SamplePreview.RecipientEmail
@Model.SamplePreview.CompanyName
Rendered Subject
@Model.SamplePreview.RenderedSubject
Rendered HTML Body
@Html.Raw(Model.SamplePreview.RenderedHtmlBody)
Delivery Summary
The system will process each selected company one at a time. The sample shown on the left uses the first available recipient after token replacement.
Selected Companies
@foreach (var row in Model.SelectedCompanies) { }
Company Recipient Company Admin Ready
@row.CompanyName
#@row.CompanyId
@row.RecipientName
@(string.IsNullOrWhiteSpace(row.RecipientEmail) ? "No primary contact email configured" : row.RecipientEmail)
@(string.IsNullOrWhiteSpace(row.CompanyAdminName) ? "—" : row.CompanyAdminName)
@if (!string.IsNullOrWhiteSpace(row.CompanyAdminEmail)) {
@row.CompanyAdminEmail
}
@if (row.CanSend) { Ready } else { @row.SkipReason }
@Html.AntiForgeryToken() @foreach (var companyId in Model.CompanyIds ?? Array.Empty()) { }
@if (Model.EligibleCount > 0) { } else { }