From 0a0869c4fa7cb05e7069c793e1801a9009479301 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Thu, 14 May 2015 11:57:23 -0300 Subject: [PATCH] add email notification & template --- lib/emailservice.js | 4 ++++ lib/templates/wallet_complete.plain | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 lib/templates/wallet_complete.plain diff --git a/lib/emailservice.js b/lib/emailservice.js index 595a620..e5f8d43 100644 --- a/lib/emailservice.js +++ b/lib/emailservice.js @@ -15,6 +15,10 @@ var EMAIL_TYPES = { filename: 'new_copayer', notifyDoer: false, }, + 'WalletComplete': { + filename: 'wallet_complete', + notifyDoer: true, + }, 'NewTxProposal': { filename: 'new_tx_proposal', notifyDoer: false, diff --git a/lib/templates/wallet_complete.plain b/lib/templates/wallet_complete.plain new file mode 100644 index 0000000..ba52e3e --- /dev/null +++ b/lib/templates/wallet_complete.plain @@ -0,0 +1,2 @@ +<%= subjectPrefix %>Wallet complete +Your wallet <%= walletName %> is complete.