Add test SMTP settings

This commit is contained in:
nztqa 2017-11-27 16:44:19 +09:00
parent 33b7622897
commit dffe3d5ade
4 changed files with 40 additions and 0 deletions

View file

@ -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');