Skip to content

Commit

Permalink
Add Josh bcc for signup link
Browse files Browse the repository at this point in the history
  • Loading branch information
maxachis committed Nov 28, 2024
1 parent 3416bde commit ac00574
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions middleware/primary_resource_logic/signup_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def send_signup_link(email: str, token: str):
subject="Please validate your account",
text=text,
html=text,
bcc="[email protected]",
)


Expand Down
8 changes: 7 additions & 1 deletion middleware/third_party_interaction_logic/mailgun_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@


def send_via_mailgun(
to_email: str, subject: str, text: str, html: Optional[str] = None
to_email: str,
subject: str,
text: str,
html: Optional[str] = None,
bcc: Optional[str] = None,
):
"""
Sends an email via Mailgun
Expand All @@ -22,6 +26,8 @@ def send_via_mailgun(

if html is not None:
data["html"] = html
if bcc is not None:
data["bcc"] = bcc

r = requests.post(
MAILGUN_URL, auth=("api", get_env_variable("MAILGUN_KEY")), data=data, timeout=5
Expand Down

0 comments on commit ac00574

Please sign in to comment.