display mail client details

This commit is contained in:
Usman Nasir
2020-05-10 23:38:59 +05:00
parent 6bc60d7c9e
commit a3c37b4e14
4 changed files with 78 additions and 2 deletions

View File

@@ -537,7 +537,7 @@ class MailServerManager:
json_data = json_data + ',' + json.dumps(dic)
json_data = json_data + ']'
final_json = json.dumps({'status': 1, 'fetchStatus': 1, 'mailConfigured': mailConfigured, 'error_message': "None", "data": json_data})
final_json = json.dumps({'status': 1, 'fetchStatus': 1,'serverHostname': 'mail.%s' % (selectedDomain), 'mailConfigured': mailConfigured, 'error_message': "None", "data": json_data})
return HttpResponse(final_json)
except BaseException as msg:

View File

@@ -1153,6 +1153,7 @@ app.controller('listEmails', function ($scope, $http) {
$scope.emailsAccounts = false;
$scope.records = JSON.parse(response.data.data);
$scope.mailConfigured = response.data.mailConfigured;
$scope.serverHostname = response.data.serverHostname;
new PNotify({
title: 'Success!',

View File

@@ -65,7 +65,81 @@
</a>
</div>
<div class="col-sm-12">
<div class="col-sm-4">
<h4>{% trans "Details To Configure Mail Clients" %}</h4>
<table class="table">
<thead>
<tr>
<th>{% trans "POP3" %}</th>
<th>{% trans "Details" %}</th>
</tr>
</thead>
<tbody>
<tr>
<td>{% trans "Server Hostname" %}</td>
<td>{$ serverHostname $}</td>
</tr>
<tr>
<td>{% trans "Port" %}</td>
<td>110</td>
</tr>
<tr>
<td>{% trans "SSL" %}</td>
<td>STARTTLS</td>
</tr>
</tbody>
</table>
<table class="table">
<thead>
<tr>
<th>{% trans "IMAP" %}</th>
<th>{% trans "Details" %}</th>
</tr>
</thead>
<tbody>
<tr>
<td>{% trans "Server Hostname" %}</td>
<td>{$ serverHostname $}</td>
</tr>
<tr>
<td>{% trans "Port" %}</td>
<td>143</td>
</tr>
<tr>
<td>{% trans "SSL" %}</td>
<td>STARTTLS</td>
</tr>
</tbody>
</table>
<table class="table">
<thead>
<tr>
<th>{% trans "SMTP" %}</th>
<th>{% trans "Details" %}</th>
</tr>
</thead>
<tbody>
<tr>
<td>{% trans "Server Hostname" %}</td>
<td>{$ serverHostname $}</td>
</tr>
<tr>
<td>{% trans "Port" %}</td>
<td>587</td>
</tr>
<tr>
<td>{% trans "SSL" %}</td>
<td>STARTTLS</td>
</tr>
</tbody>
</table>
</div>
<div class="col-sm-8">
<table class="table">
<thead>

View File

@@ -1153,6 +1153,7 @@ app.controller('listEmails', function ($scope, $http) {
$scope.emailsAccounts = false;
$scope.records = JSON.parse(response.data.data);
$scope.mailConfigured = response.data.mailConfigured;
$scope.serverHostname = response.data.serverHostname;
new PNotify({
title: 'Success!',