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!
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, andEmailService
as a provider to any existing module. You can useEmailService#sendBasicEmail
to quickly send a well formatted email with the params{ to, subject, text }
. For more complex email requirements, useEmailService#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!