Skip to content

Commit

Permalink
Support send-as and reply-to
Browse files Browse the repository at this point in the history
This PR adds support for send-as and reply-to, in case we need to send from custom emails.
  • Loading branch information
ben-z authored Aug 18, 2024
1 parent 87a67cb commit 4dde1b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ def sign_up(req: SignUpRequest, request: Request):
dedent(
f"""
Subject: Confirm Your Email Subscription for '{req.mailing_list}'
From: {os.environ["SMTP_USERNAME"]}
From: {os.getenv("SMTP_SEND_AS", os.environ["SMTP_USERNAME"])}
To: {req.email}
Reply-To: {os.environ["SMTP_USERNAME"]}
Reply-To: {os.getenv("SMTP_REPLY_TO", os.environ["SMTP_USERNAME"])}
MIME-Version: 1.0
Content-Type: text/html; charset="utf-8"
Expand Down

0 comments on commit 4dde1b0

Please sign in to comment.