diff --git a/services/mailer.js b/services/mailer.js index f3d9235ba..5d70fcf50 100644 --- a/services/mailer.js +++ b/services/mailer.js @@ -18,7 +18,7 @@ const templates = { data: {} }; -// load the temlates per request during development +// load the templates per request during development templates.render = (name, format = 'txt', context) => new Promise((resolve, reject) => { // If we are in production mode, check the view cache. @@ -50,7 +50,7 @@ templates.render = (name, format = 'txt', context) => new Promise((resolve, reje return resolve(view(context)); }); -}); +}); // ends templates.render const options = { host: SMTP_HOST, diff --git a/services/templates/email_confirm/es/html.ejs b/services/templates/email_confirm/es/html.ejs new file mode 100644 index 000000000..1da7a1e9d --- /dev/null +++ b/services/templates/email_confirm/es/html.ejs @@ -0,0 +1,3 @@ +
Un correo de confirmación ha sido pedido para esta cuenta: <%= email %>.
+To confirm the account, please visit the following link: Confirm Email
+If you did not request this, you can safely ignore this email.
diff --git a/services/templates/email_confirm/es/text.ejs b/services/templates/email_confirm/es/text.ejs new file mode 100644 index 000000000..4c7d7d312 --- /dev/null +++ b/services/templates/email_confirm/es/text.ejs @@ -0,0 +1,9 @@ +A email confirmation has been requested for the following account: + + <%= email %> + +To confirm the account, please visit the following link: + + <%= rootURL %>/confirm/endpoint#<%= token %> + +If you did not request this, you can safely ignore this email. diff --git a/services/templates/email_confirm/html.ejs b/services/templates/email_confirm/html.ejs new file mode 100644 index 000000000..dd2397edf --- /dev/null +++ b/services/templates/email_confirm/html.ejs @@ -0,0 +1,3 @@ +A email confirmation has been requested for the following account: <%= email %>.
+To confirm the account, please visit the following link: Confirm Email
+If you did not request this, you can safely ignore this email.
diff --git a/services/templates/email_confirm/text.ejs b/services/templates/email_confirm/text.ejs new file mode 100644 index 000000000..4c7d7d312 --- /dev/null +++ b/services/templates/email_confirm/text.ejs @@ -0,0 +1,9 @@ +A email confirmation has been requested for the following account: + + <%= email %> + +To confirm the account, please visit the following link: + + <%= rootURL %>/confirm/endpoint#<%= token %> + +If you did not request this, you can safely ignore this email. diff --git a/services/templates/notification/es/html.ejs b/services/templates/notification/es/html.ejs new file mode 100644 index 000000000..b36560ec5 --- /dev/null +++ b/services/templates/notification/es/html.ejs @@ -0,0 +1 @@ +<%= body %> diff --git a/services/templates/notification/es/text.ejs b/services/templates/notification/es/text.ejs new file mode 100644 index 000000000..b36560ec5 --- /dev/null +++ b/services/templates/notification/es/text.ejs @@ -0,0 +1 @@ +<%= body %> diff --git a/services/templates/notification/html.ejs b/services/templates/notification/html.ejs new file mode 100644 index 000000000..b36560ec5 --- /dev/null +++ b/services/templates/notification/html.ejs @@ -0,0 +1 @@ +<%= body %> diff --git a/services/templates/notification/text.ejs b/services/templates/notification/text.ejs new file mode 100644 index 000000000..b36560ec5 --- /dev/null +++ b/services/templates/notification/text.ejs @@ -0,0 +1 @@ +<%= body %> diff --git a/services/templates/password-reset/es/html.ejs b/services/templates/password-reset/es/html.ejs new file mode 100644 index 000000000..e478ceeba --- /dev/null +++ b/services/templates/password-reset/es/html.ejs @@ -0,0 +1,2 @@ +We received a request to reset your password. If you did not request this change, you can ignore this email.
+If you did, please click here to reset password.
We received a request to reset your password. If you did not request this change, you can ignore this email.
+If you did, please click here to reset password.