summaryrefslogtreecommitdiffstats
path: root/client/components/settings/settingBody.js
diff options
context:
space:
mode:
authornztqa <nztqa@users.noreply.github.com>2017-11-27 16:44:19 +0900
committernztqa <nztqa@users.noreply.github.com>2017-11-27 16:44:19 +0900
commitdffe3d5ade15582ec71714031509a314a2616667 (patch)
treeefb1219939785e901afb312cb49e4fe7ae008fe4 /client/components/settings/settingBody.js
parent33b76228975aecdba827f5e41cf3e9d4f2949aa9 (diff)
downloadwekan-dffe3d5ade15582ec71714031509a314a2616667.tar.gz
wekan-dffe3d5ade15582ec71714031509a314a2616667.tar.bz2
wekan-dffe3d5ade15582ec71714031509a314a2616667.zip
Add test SMTP settings
Diffstat (limited to 'client/components/settings/settingBody.js')
-rw-r--r--client/components/settings/settingBody.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/client/components/settings/settingBody.js b/client/components/settings/settingBody.js
index 27f690ee..c94f46bb 100644
--- a/client/components/settings/settingBody.js
+++ b/client/components/settings/settingBody.js
@@ -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');