Browse Source

Fixed mail help using old config

tags/2.0.3
Teknikode 4 years ago
parent
commit
638d90bf9b
2 changed files with 11 additions and 8 deletions
  1. 8
    8
      Teknik/Areas/Help/Views/Help/Mail.cshtml
  2. 3
    0
      Teknik/Configuration/EmailConfig.cs

+ 8
- 8
Teknik/Areas/Help/Views/Help/Mail.cshtml View File

@@ -17,16 +17,16 @@
<div class="col-sm-6">
<ul class="list-group">
<li class="list-group-item text-center">User Information</li>
<li class="list-group-item">Email Address:<div class="pull-right"><b>@string.Format("[username]@{0}", Model.Config.Host)</b></div></li>
<li class="list-group-item">Email Address:<div class="pull-right"><b>@string.Format("[username]@{0}", Model.Config.EmailConfig.Domain)</b></div></li>
<li class="list-group-item text-center">Server Information</li>
<li class="list-group-item">Incoming Server:<div class="pull-right"><b>@Model.Config.SMTPConfig.Host</b></div></li>
<li class="list-group-item">Outgoing Server:<div class="pull-right"><b>@Model.Config.SMTPConfig.Host</b></div></li>
<li class="list-group-item">Incoming Server:<div class="pull-right"><b>@Model.Config.EmailConfig.MailHost</b></div></li>
<li class="list-group-item">Outgoing Server:<div class="pull-right"><b>@Model.Config.EmailConfig.MailHost</b></div></li>
</ul>
</div>
<div class="col-sm-6">
<ul class="list-group">
<li class="list-group-item text-center">Logon Information</li>
<li class="list-group-item">Username:<div class="pull-right"><b>@string.Format("[username]@{0}", Model.Config.Host)</b></div></li>
<li class="list-group-item">Username:<div class="pull-right"><b>@string.Format("[username]@{0}", Model.Config.EmailConfig.Domain)</b></div></li>
<li class="list-group-item">Password:<div class="pull-right"><b>[password]</b></div></li>
<li class="list-group-item text-center">More Settings</li>
<li class="list-group-item">Requires Authentication:<div class="pull-right"><b>Both</b></div></li>
@@ -45,9 +45,9 @@
<div class="col-sm-6">
<ul class="list-group">
<li class="list-group-item text-center">Server Settings</li>
<li class="list-group-item">Server Name:<div class="pull-right"><b>@Model.Config.SMTPConfig.Host</b></div></li>
<li class="list-group-item">Server Name:<div class="pull-right"><b>@Model.Config.EmailConfig.MailHost</b></div></li>
<li class="list-group-item">Port:<div class="pull-right"><b>143 (993 SSL)</b></div></li>
<li class="list-group-item">User Name:<div class="pull-right"><b>@string.Format("[username]@{0}", Model.Config.Host)</b></div></li>
<li class="list-group-item">User Name:<div class="pull-right"><b>@string.Format("[username]@{0}", Model.Config.EmailConfig.Domain)</b></div></li>
<li class="list-group-item">Connection Security:<div class="pull-right"><b>None (SSL/TLS)</b></div></li>
<li class="list-group-item">Authentication method:<div class="pull-right"><b>Password</b></div></li>
</ul>
@@ -55,9 +55,9 @@
<div class="col-sm-6">
<ul class="list-group">
<li class="list-group-item text-center">Outgoing Server (SMTP)</li>
<li class="list-group-item">Server Name:<div class="pull-right"><b>@Model.Config.SMTPConfig.Host</b></div></li>
<li class="list-group-item">Server Name:<div class="pull-right"><b>@Model.Config.EmailConfig.MailHost</b></div></li>
<li class="list-group-item">Port:<div class="pull-right"><b>25 (465 SSL)</b></div></li>
<li class="list-group-item">User Name:<div class="pull-right"><b>@string.Format("[username]@{0}", Model.Config.Host)</b></div></li>
<li class="list-group-item">User Name:<div class="pull-right"><b>@string.Format("[username]@{0}", Model.Config.EmailConfig.Domain)</b></div></li>
<li class="list-group-item">Connection Security:<div class="pull-right"><b>None (SSL/TLS)</b></div></li>
<li class="list-group-item">Authentication method:<div class="pull-right"><b>Password</b></div></li>
</ul>

+ 3
- 0
Teknik/Configuration/EmailConfig.cs View File

@@ -13,6 +13,8 @@ namespace Teknik.Configuration

public string Domain { get; set; }

public string MailHost { get; set; }

public int MaxSize { get; set; }

public EmailConfig()
@@ -20,6 +22,7 @@ namespace Teknik.Configuration
Username = string.Empty;
Password = string.Empty;
Domain = string.Empty;
MailHost = string.Empty;
MaxSize = 1000;
}
}

Loading…
Cancel
Save