mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-28 10:30:42 +00:00
show debug msg when test email is send
This commit is contained in:
parent
ff2a815b6c
commit
0c53fee77d
|
|
@ -191,7 +191,6 @@ class SeedDMS_View_Settings extends SeedDMS_Bootstrap_Style {
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
data: {command: 'testmail'},
|
data: {command: 'testmail'},
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
console.log(data);
|
|
||||||
noty({
|
noty({
|
||||||
text: data.msg,
|
text: data.msg,
|
||||||
type: (data.error) ? 'error' : 'success',
|
type: (data.error) ? 'error' : 'success',
|
||||||
|
|
@ -200,6 +199,9 @@ class SeedDMS_View_Settings extends SeedDMS_Bootstrap_Style {
|
||||||
theme: 'defaultTheme',
|
theme: 'defaultTheme',
|
||||||
timeout: 1500,
|
timeout: 1500,
|
||||||
});
|
});
|
||||||
|
if(data.data) {
|
||||||
|
$('#maildebug').text(data.data);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
@ -390,7 +392,7 @@ $this->showStartPaneContent('site', (!$currenttab || $currenttab == 'site'));
|
||||||
<?php $this->showConfigText('settings_smtpSendFrom', 'smtpSendFrom'); ?>
|
<?php $this->showConfigText('settings_smtpSendFrom', 'smtpSendFrom'); ?>
|
||||||
<?php $this->showConfigText('settings_smtpUser', 'smtpUser'); ?>
|
<?php $this->showConfigText('settings_smtpUser', 'smtpUser'); ?>
|
||||||
<?php $this->showConfigText('settings_smtpPassword', 'smtpPassword', 'password'); ?>
|
<?php $this->showConfigText('settings_smtpPassword', 'smtpPassword', 'password'); ?>
|
||||||
<?php $this->showConfigPlain(htmlspecialchars(getMLText('settings_smtpSendTestMail')), htmlspecialchars(getMLText('settings_smtpSendTestMail_desc')), '<a class="btn sendtestmail">'.getMLText('send_test_mail').'</a>'); ?>
|
<?php $this->showConfigPlain(htmlspecialchars(getMLText('settings_smtpSendTestMail')), htmlspecialchars(getMLText('settings_smtpSendTestMail_desc')), '<a class="btn sendtestmail">'.getMLText('send_test_mail').'</a><div><pre id="maildebug">You will see debug messages here</pre></div>'); ?>
|
||||||
<?php
|
<?php
|
||||||
$this->showEndPaneContent('system', $currenttab);
|
$this->showEndPaneContent('system', $currenttab);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user