-
Notifications
You must be signed in to change notification settings - Fork 47
feat: refactor email config to allow SMTP hosts other than Gmail #104
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
base: main
Are you sure you want to change the base?
feat: refactor email config to allow SMTP hosts other than Gmail #104
Conversation
|
Thanks for the PRs |
|
Yes, I've setup MFTP with AWS SES with these changes only, and it's working fine. |
proffapt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't change previous variables, only configure the variable which you are adding now
927fd9c to
19df025
Compare
|
Got it! I've updated it. |
| FROM_EMAIL = "[email protected]" # Notification Sender Email-id | ||
| FROM_EMAIL_PASS = "**********" # App password for the above email-id | ||
| # SMTP Credentials | ||
| SMTP_HOST = "smtp.gmail.com" | ||
| FROM_EMAIL_USER = "xxxxxxxxxxxxxxxxxxxx" # Same as FROM_EMAIL in case of Gmail SMTP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep a single env instead of duplicated ones.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FROM_EMAIL_USER is same as FROM_EMAIL in case of Gmail SMTP only. For AWS SES, we have a different SMTP Username, which is why I've kept it different.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can remove one of them as it is redundant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
user provides the smtp host and for any host they will need to give username and password
Description
Refactor the SMTP credentials to support SMTP hosts other than Gmail, like AWS SES.
Type of change