Skip to content

config allows actually sending emails#13

Merged
kyokukou merged 2 commits into
developfrom
get-email-ready
Jun 4, 2026
Merged

config allows actually sending emails#13
kyokukou merged 2 commits into
developfrom
get-email-ready

Conversation

@kyokukou

@kyokukou kyokukou commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@kyokukou
kyokukou requested a review from bdc34 June 4, 2026 15:35
Comment thread app/config.py

#email related
SEND_EMAILS: bool = False
REDIRECT_EMAILS: bool = True

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super minor: can we name this TEST_REDIRECT_EMAILS and TEST_REDIRECT_RECIPIENT?

Comment thread app/email.py
redirect_header += f"\nOriginal Bcc: {', '.join(bcc_emails)}"
body = redirect_header + "\n\n" + body
html_body = redirect_header.replace("\n", "<br>\n") + "<br><br>\n" + html_body
to_emails = [settings.REDIRECT_RECIPIENT]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be None but I guess that is just in testing?

@bdc34 bdc34 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor comments.

@kyokukou
kyokukou merged commit 3ab82b2 into develop Jun 4, 2026
1 check passed
@kyokukou
kyokukou deleted the get-email-ready branch June 4, 2026 17:14
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.

2 participants