fix: Update email sender parameters in backend code (#2755)

# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):

Co-authored-by: Stan Girard <stan@quivr.app>
This commit is contained in:
Stan Girard 2024-06-26 14:21:46 +02:00 committed by GitHub
parent cb3b795a92
commit d8956e55bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 4 deletions

View File

@ -112,7 +112,7 @@ class ITO(BaseModel):
</div> </div>
""" """
params = { params = {
"sender": mail_from, "from": mail_from,
"to": [mail_to], "to": [mail_to],
"subject": "Quivr Ingestion Processed", "subject": "Quivr Ingestion Processed",
"reply_to": "no-reply@quivr.app", "reply_to": "no-reply@quivr.app",

View File

@ -42,9 +42,10 @@ def resend_invitation_email(
try: try:
r = send_email( r = send_email(
{ {
"sender": brains_settings.resend_email_address, "from": brains_settings.resend_email_address,
"to": brain_subscription.email, "to": [brain_subscription.email],
"subject": "Quivr - Brain Shared With You", "subject": "Quivr - Brain Shared With You",
"reply_to": "no-reply@quivr.app",
"html": html_body, "html": html_body,
} }
) )

View File

@ -53,7 +53,7 @@ class EmailSenderTool(BaseTool):
try: try:
r = send_email( r = send_email(
{ {
"sender": self.contact_settings.resend_contact_sales_from, "from": self.contact_settings.resend_contact_sales_from,
"to": self.user_email, "to": self.user_email,
"reply_to": "no-reply@quivr.app", "reply_to": "no-reply@quivr.app",
"subject": "Email from your assistant", "subject": "Email from your assistant",