Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat : Added support for different email service provider. #746

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

ganeshawle25
Copy link

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.

Signed-off-by: Ganesh Nawle <ganesh.nawle@ayanworks.com>
libs/common/src/aws-ses-helper-file.ts Outdated Show resolved Hide resolved
libs/common/src/aws-ses-helper-file.ts Outdated Show resolved Hide resolved
libs/common/src/email.service.ts Outdated Show resolved Hide resolved
Signed-off-by: Ganesh Nawle <ganesh.nawle@ayanworks.com>
Copy link

sonarcloud bot commented Jun 3, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@tipusinghaw tipusinghaw self-requested a review July 5, 2024 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants