From ec65fe31cc62ce8db71d201d5250e308e665e2af Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 19 Aug 2018 16:33:01 +0000 Subject: [PATCH] update email copy --- lib/extensions/index.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/extensions/index.js b/lib/extensions/index.js index 0e27f6e..f454e0c 100644 --- a/lib/extensions/index.js +++ b/lib/extensions/index.js @@ -215,17 +215,23 @@ function sendMail(state, auth) { -F subject='Hello' \ -F text='Testing some Mailgun awesomeness!' */ - var subj = 'Confirm New Device Connection'; - var text = "You tried connecting with '{{hostname}}' for the first time. Confirm to continue connecting:\n" + var subj = "Confirm New Device for Your Telebit Account"; + var text = "Hello!\n" + + '\n' + + "Want to use '{{hostname}}' with Telebit?\n" + + "Just confirm your email address by clicking the link below:\n" + '\n' + ' https://' + state.config.webminDomain + '/login/#/magic={{secret}}\n' + '\n' + "({{os_arch}} {{os_platform}} {{os_release}})\n" + '\n' ; - var html = "You tried connecting with '{{hostname}}' for the first time. Confirm to continue connecting:
" + var html = "

Hello!

" + '
' - + '       Confirm Device
' + + "Want to use '{{hostname}}' with Telebit?
" + + "Just confirm your email address by clicking the link below:
" + + '
' + + '       Confirm Email Address
' + '
' + '       or copy and paste this link:
' + '       https://' + state.config.webminDomain + '/login/#/magic={{secret}}
'