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

Test stage of server does not take from email in settings #8885

Open
cweitat opened this issue Jun 6, 2023 · 0 comments
Open

Test stage of server does not take from email in settings #8885

cweitat opened this issue Jun 6, 2023 · 0 comments
Labels
Milestone

Comments

@cweitat
Copy link
Contributor

cweitat commented Jun 6, 2023

Describe the bug
Currently in the test version, the server does not take From Email into part of the payload that is sent to sendgrid, resulting in 403 Forbidden as Sendgrid only allows authenticated domains to send from. Currently its hardcoded in the settings to [email protected] as seen from the logs.
image
image

Current circumvent have added fossasia.org to Sendgrid to allow test server to be functioned

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Admin
  2. Go to 'Mail Settings'
  3. Send Test email
  4. 403 Error if not a eventyay or fossasia domain

Expected behavior
Should reference to user's domain

Stacktrace
Triggers send email function

def send_email(to, action, subject, html, attachments=None, bcc=None, reply_to=None):

Function check for ENV state, email from is taken off build config if in ENV = TEST

def get_settings(from_db=False):

Issue was brought up indirectly in 2018 #4910 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Inbox
Development

No branches or pull requests

2 participants