@using bitforum.Helpers
@{
    ViewData["Title"] = "알림 발송 확인";
    var config = ViewBag.Config as Dictionary<string, string>;
}

<div class="container">
    <h3>@ViewData["Title"]</h3>
    <hr />

    <partial name="_StatusMessage" />

    <div class="row row-cols-1 row-cols-sm-4 g-2 mb-2">
        <div class="col">
            <strong>SMTP Server</strong>
        </div>
        <div class="col">
            @config.GetConfig("smtp_server")
        </div>
        <div class="col">
            <strong>SMTP Port</strong>
        </div>
        <div class="col">
            @config.GetConfig("smtp_port")
        </div>
    </div>
    <div class="row row-cols-1 row-cols-sm-4 g-2">
        <div class="col">
            <strong>SMTP From Email</strong>
        </div>
        <div class="col">
            @config.GetConfig("smtp_from_email")
        </div>
        <div class="col">
            <strong>SMTP Email Password</strong>
        </div>
        <div class="col">
            @config.GetConfig("smtp_email_password")
        </div>
    </div>
    <hr/>
    <div class="mb-3 row">
        <label class="col-sm-2 col-form-label">Send E-mail</label>
        <div class="col-sm-10">
            <input type="text" readonly class="form-control-plaintext" value="@config.GetConfig("smtp_from_email")" />
        </div>
    </div>
    <div class="row">
        <label for="toAddress" class="col-sm-2 col-form-label">Receive E-mail</label>
        <div class="col-sm-10">
            <form name="f_admin_write" id="fAdminWrite" method="post" asp-controller="Test" asp-action="Send" autocomplete="off">
                <input type="email" name="toAddress" id="toAddress" class="form-control w-auto d-inline" size="35" placeholder="수신받을 이메일을 입력하세요." />
                <button type="submit" class="btn btn-success">보내기</button>
            </form>
        </div>
    </div>
</div>