Created
February 12, 2022 13:36
-
-
Save NikhilNanjappa/7b6b6b42bab880a95fc5cb4938b1531a to your computer and use it in GitHub Desktop.
Strapi email.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
await strapi.plugins['email'].services.email.send({ | |
to: ctx.request.body.to, | |
from: '[email protected]', | |
replyTo: '[email protected]', | |
subject: 'My message', | |
text: 'Text', | |
html: '<h1>Text</h1>' | |
}, config); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment