import fs from 'fs/promises'; import path from 'path'; import { CONSTANTS } from '../../../../lib/helpers.js'; import { translate } from '../../../../lib/locale/translate/translate.js'; import { debug, error } from '../../../../lib/log/logger.js'; import { buildEmailBodyFromTemplate, sendEmail } from '../../../../lib/mail/emailHelper.js'; import { getConfig } from '../../../../lib/util/getConfig.js'; import { getValue } from '../../../../lib/util/registry.js'; import { EventData } from '../../../../types/event.js'; const TEMPLATE = `
{{#if storeInfo.logo}} {{/if}}|
{{#if storeInfo.logo}}
Hi {{customer.full_name}}, Welcome to {{storeInfo.storeName}}. We are excited to have you on board. You can now start shopping and enjoy the best deals on the market.
Best, {{storeInfo.address.street}}, {{storeInfo.address.city}}, {{storeInfo.address.state}} {{storeInfo.address.zip}}, {{storeInfo.address.country}} |