-
Notifications
You must be signed in to change notification settings - Fork 2.1k
add sendgrid as option #4639
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
add sendgrid as option #4639
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
PR Summary
This PR adds SendGrid as an alternative email delivery service alongside SMTP, addressing an email sending issue while maintaining backward compatibility.
- Added SendGrid integration in
/backend/onyx/auth/email_utils.py
withsend_email_with_sendgrid()
function for handling both HTML and plain text emails - Introduced
SENDGRID_API_KEY
configuration in/backend/onyx/configs/app_configs.py
while preserving existing SMTP settings - Added new dependencies in
/backend/requirements/default.txt
: sendgrid (6.11.0), python-http-client (3.3.7), starkbank-ecdsa (2.2.0) - Created skipped test in
/backend/tests/unit/onyx/auth/test_email.py
to validate email functionality - Fixed typo in
/backend/onyx/chat/process_message.py
fromresponse_sumary
toresponse_summary
5 file(s) reviewed, 6 comment(s)
Edit PR Review Bot Settings | Greptile
* add sendgrid as option * code review * mypy --------- Co-authored-by: Richard Kuo (Onyx) <rkuo@onyx.app>
Description
Fixes https://linear.app/danswer/issue/DAN-1929/emails-not-sending.
How Has This Been Tested?
Added by default skipped test that sent an email.
Backporting (check the box to trigger backport action)
Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.