ReflectionsProjections / rp-api-2023

Core Backend API Layer for Reflections | Projections 2023, powered by Nest.js
MIT License
0 stars 0 forks source link

Add ability to send emails via EmailModule #5

Closed xuxey closed 1 year ago

xuxey commented 1 year ago

This PR adds an EmailModule that can be injected anywhere within rp-core, abstracting away the complexity of sending dynamic emails.

To use, add EmailModule as an import, and EmailService as a provider to any existing module. You can use EmailService#sendBasicEmail to quickly send a well formatted email with the params { to, subject, text }. For more complex email requirements, use EmailService#send which accepts all possible SendGrid configurations.

Please look at the example usage in EmailController and mark this PR as approved. Additionally, feel free to leave comments for comments/suggestions. Happy Sunday!