platform
platform copied to clipboard
feat : Added support for different email service provider.
What
- Added support for different email provider like Amazon SES, SMTP(for gmail) and refactored existing SendGrid functionality.
Why
- As per client's requirement provide email support for Amazon SES and SMTP providers.
How
- Added 'email.service.ts' class, which contains common 'sendEmail' as entry function and according to EMAIL_PROVIDER property it will call respective functionalities.
- Added new 'sendWithSES' and 'sendWithSMTP functions for each email provider.
- Refactored existing sendWithSendGrid function.