mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-09 14:56:10 +01:00
display mail client details
This commit is contained in:
@@ -537,7 +537,7 @@ class MailServerManager:
|
|||||||
json_data = json_data + ',' + json.dumps(dic)
|
json_data = json_data + ',' + json.dumps(dic)
|
||||||
|
|
||||||
json_data = json_data + ']'
|
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)
|
return HttpResponse(final_json)
|
||||||
|
|
||||||
except BaseException as msg:
|
except BaseException as msg:
|
||||||
|
|||||||
@@ -1153,6 +1153,7 @@ app.controller('listEmails', function ($scope, $http) {
|
|||||||
$scope.emailsAccounts = false;
|
$scope.emailsAccounts = false;
|
||||||
$scope.records = JSON.parse(response.data.data);
|
$scope.records = JSON.parse(response.data.data);
|
||||||
$scope.mailConfigured = response.data.mailConfigured;
|
$scope.mailConfigured = response.data.mailConfigured;
|
||||||
|
$scope.serverHostname = response.data.serverHostname;
|
||||||
|
|
||||||
new PNotify({
|
new PNotify({
|
||||||
title: 'Success!',
|
title: 'Success!',
|
||||||
|
|||||||
@@ -65,7 +65,81 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</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">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
|
|||||||
@@ -1153,6 +1153,7 @@ app.controller('listEmails', function ($scope, $http) {
|
|||||||
$scope.emailsAccounts = false;
|
$scope.emailsAccounts = false;
|
||||||
$scope.records = JSON.parse(response.data.data);
|
$scope.records = JSON.parse(response.data.data);
|
||||||
$scope.mailConfigured = response.data.mailConfigured;
|
$scope.mailConfigured = response.data.mailConfigured;
|
||||||
|
$scope.serverHostname = response.data.serverHostname;
|
||||||
|
|
||||||
new PNotify({
|
new PNotify({
|
||||||
title: 'Success!',
|
title: 'Success!',
|
||||||
|
|||||||
Reference in New Issue
Block a user