Skip to content

Commit

Permalink
Merge pull request #1 from WATonomous/ben-z-patch-1
Browse files Browse the repository at this point in the history
Support send-as and reply-to
  • Loading branch information
ben-z authored Aug 18, 2024
2 parents 87a67cb + 4dde1b0 commit a1a6c78
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 a1a6c78

Please sign in to comment.