Skip to content

Commit a3c37b4

Browse files
committed
display mail client details
1 parent 6bc60d7 commit a3c37b4

4 files changed

Lines changed: 78 additions & 2 deletions

File tree

mailServer/mailserverManager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ def fetchEmails(self):
537537
json_data = json_data + ',' + json.dumps(dic)
538538

539539
json_data = json_data + ']'
540-
final_json = json.dumps({'status': 1, 'fetchStatus': 1, 'mailConfigured': mailConfigured, 'error_message': "None", "data": json_data})
540+
final_json = json.dumps({'status': 1, 'fetchStatus': 1,'serverHostname': 'mail.%s' % (selectedDomain), 'mailConfigured': mailConfigured, 'error_message': "None", "data": json_data})
541541
return HttpResponse(final_json)
542542

543543
except BaseException as msg:

mailServer/static/mailServer/mailServer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,6 +1153,7 @@ app.controller('listEmails', function ($scope, $http) {
11531153
$scope.emailsAccounts = false;
11541154
$scope.records = JSON.parse(response.data.data);
11551155
$scope.mailConfigured = response.data.mailConfigured;
1156+
$scope.serverHostname = response.data.serverHostname;
11561157

11571158
new PNotify({
11581159
title: 'Success!',

mailServer/templates/mailServer/listEmails.html

Lines changed: 75 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,81 @@ <h3>{% trans "Postfix is disabled." %}
6565
</a>
6666
</div>
6767

68-
<div class="col-sm-12">
68+
<div class="col-sm-4">
69+
70+
<h4>{% trans "Details To Configure Mail Clients" %}</h4>
71+
72+
<table class="table">
73+
<thead>
74+
<tr>
75+
<th>{% trans "POP3" %}</th>
76+
<th>{% trans "Details" %}</th>
77+
</tr>
78+
</thead>
79+
<tbody>
80+
<tr>
81+
<td>{% trans "Server Hostname" %}</td>
82+
<td>{$ serverHostname $}</td>
83+
</tr>
84+
<tr>
85+
<td>{% trans "Port" %}</td>
86+
<td>110</td>
87+
</tr>
88+
<tr>
89+
<td>{% trans "SSL" %}</td>
90+
<td>STARTTLS</td>
91+
</tr>
92+
</tbody>
93+
</table>
94+
95+
<table class="table">
96+
<thead>
97+
<tr>
98+
<th>{% trans "IMAP" %}</th>
99+
<th>{% trans "Details" %}</th>
100+
</tr>
101+
</thead>
102+
<tbody>
103+
<tr>
104+
<td>{% trans "Server Hostname" %}</td>
105+
<td>{$ serverHostname $}</td>
106+
</tr>
107+
<tr>
108+
<td>{% trans "Port" %}</td>
109+
<td>143</td>
110+
</tr>
111+
<tr>
112+
<td>{% trans "SSL" %}</td>
113+
<td>STARTTLS</td>
114+
</tr>
115+
</tbody>
116+
</table>
117+
118+
<table class="table">
119+
<thead>
120+
<tr>
121+
<th>{% trans "SMTP" %}</th>
122+
<th>{% trans "Details" %}</th>
123+
</tr>
124+
</thead>
125+
<tbody>
126+
<tr>
127+
<td>{% trans "Server Hostname" %}</td>
128+
<td>{$ serverHostname $}</td>
129+
</tr>
130+
<tr>
131+
<td>{% trans "Port" %}</td>
132+
<td>587</td>
133+
</tr>
134+
<tr>
135+
<td>{% trans "SSL" %}</td>
136+
<td>STARTTLS</td>
137+
</tr>
138+
</tbody>
139+
</table>
140+
</div>
141+
142+
<div class="col-sm-8">
69143

70144
<table class="table">
71145
<thead>

static/mailServer/mailServer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,6 +1153,7 @@ app.controller('listEmails', function ($scope, $http) {
11531153
$scope.emailsAccounts = false;
11541154
$scope.records = JSON.parse(response.data.data);
11551155
$scope.mailConfigured = response.data.mailConfigured;
1156+
$scope.serverHostname = response.data.serverHostname;
11561157

11571158
new PNotify({
11581159
title: 'Success!',

0 commit comments

Comments
 (0)