+16
-1
@@ -474,7 +474,22 @@
|
||||
</div>
|
||||
</uib-tab>
|
||||
|
||||
<uib-tab index="2" heading="Status">
|
||||
<uib-tab index="2" heading="Settings">
|
||||
<div class="card card-large" style="margin-bottom: 15px;">
|
||||
<h4>Enable Masquerading</h4>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-10">
|
||||
Masquerading allows users and apps to send emails with an arbitrary username in the FROM address
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<button ng-class="selectedDomain.mailConfig.mailFromValidation ? 'btn btn-danger' : 'btn btn-primary'" ng-click="toggleMailFromValidation()">{{ selectedDomain.mailConfig.mailFromValidation ? "Enable" : "Disable" }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</uib-tab>
|
||||
|
||||
<uib-tab index="3" heading="Status">
|
||||
<div class="card card-large" style="margin-bottom: 15px;" ng-show="selectedDomain.provider !== 'caas' && selectedDomain.mailConfig.relay.provider === 'cloudron-smtp'">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
@@ -181,6 +181,13 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
|
||||
}
|
||||
};
|
||||
|
||||
$scope.toggleMailFromValidation = function () {
|
||||
Client.setMailFromValidation($scope.selectedDomain.domain, !$scope.selectedDomain.mailConfig.mailFromValidation, function (error) {
|
||||
if (error) return console.error(error);
|
||||
$scope.refreshDomain();
|
||||
});
|
||||
};
|
||||
|
||||
$scope.toggleEmailEnabled = function () {
|
||||
if ($scope.selectedDomain.mailConfig.enabled) {
|
||||
$('#disableEmailModal').modal('show');
|
||||
|
||||
Reference in New Issue
Block a user