Implemented mailing for Calendso instances

added two templates, confirm-booked (sent to invitee) and new-event (sent to agent, for the time being only when no calendar integrations exist).
This commit is contained in:
Alex van Andel committed 2021-05-27 22:10:20 +00:00
1 parent 01d150092f
commit cf3713d3a1
10 files changed
+273 -18

No files matched your search

+5
View File
@@ -1,5 +1,10 @@
const withTM = require('next-transpile-modules')(['react-timezone-select']);
if ( ! process.env.EMAIL_FROM ) {
console.warn('\x1b[33mwarn', '\x1b[0m', 'EMAIL_FROM environment variable is not set, this may indicate mailing is currently disabled. Please refer to the .env.example file.');
}
const validJson = (jsonString) => {
try {
const o = JSON.parse(jsonString);