We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e7c619 commit 6820873Copy full SHA for 6820873
back/extensions/email/services/email.js
@@ -36,6 +36,7 @@ const sendEmail = async (
36
return console.log("Template not found", "id", template.templateId);
37
}
38
39
+ const emailsDebug = process.env.EMAIL_TEST ? ' - Original emails : ' + options.to : '';
40
41
await strapi.plugins["email-designer"].services.email
42
.sendTemplatedEmail(
@@ -46,7 +47,7 @@ const sendEmail = async (
46
47
},
48
{
49
signature: isAdmin ? signatureAdmin : signature,
- footer: data.user_type ? getFooter(data.user_type) : "",
50
+ footer: data.user_type ? getFooter(data.user_type) + emailsDebug : emailsDebug,
51
url_site: process.env.FRONT_URL,
52
...data,
53
0 commit comments