You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you add an option to send emails as HTML when using the email provider? According to Strapi docs, you just need to set a "html" property instead of "text":
await strapi.plugins['email'].services.email.send({
to: recipient.email,
from: config.from,
subject: config.subject ? config.subject : 'New Contact Form Submission',
html: message,
})
It would be cool if this choice could be set up in some config file. Overriding the send() function for a small thing like this seems like an overkill.
The text was updated successfully, but these errors were encountered:
Wouldn't be too hard to add, would probably add a config option something like allowUnsafeHtmlAsMessage since there is a concern of malicious actors using their own HTML to make stuff like phishing emails. Not sure when I could get to this but if you make a PR I'd be happy to merge.
Can you add an option to send emails as HTML when using the email provider? According to Strapi docs, you just need to set a "html" property instead of "text":
It would be cool if this choice could be set up in some config file. Overriding the send() function for a small thing like this seems like an overkill.
The text was updated successfully, but these errors were encountered: