mirror of
https://github.com/wekan/wekan.git
synced 2025-12-27 04:38:49 +01:00
Add test SMTP settings
This commit is contained in:
parent
33b7622897
commit
dffe3d5ade
4 changed files with 40 additions and 0 deletions
|
|
@ -125,6 +125,16 @@ BlazeComponent.extendComponent({
|
|||
|
||||
},
|
||||
|
||||
sendSMTPTestEmail() {
|
||||
Meteor.call('sendSMTPTestEmail', (err, ret) => {
|
||||
if (!err && ret) { /* eslint-disable no-console */
|
||||
console.log('Success:', ret.message, ret.email);
|
||||
} else {
|
||||
console.log('Error: Sending test email', err);
|
||||
} /* eslint-enable no-console */
|
||||
});
|
||||
},
|
||||
|
||||
events(){
|
||||
return [{
|
||||
'click a.js-toggle-registration': this.toggleRegistration,
|
||||
|
|
@ -133,6 +143,7 @@ BlazeComponent.extendComponent({
|
|||
'click a.js-toggle-board-choose': this.checkBoard,
|
||||
'click button.js-email-invite': this.inviteThroughEmail,
|
||||
'click button.js-save': this.saveMailServerInfo,
|
||||
'click button.js-send-smtp-test-email': this.sendSMTPTestEmail,
|
||||
}];
|
||||
},
|
||||
}).register('setting');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue