Skip to content

Commit

Permalink
send verification email synchronously
Browse files Browse the repository at this point in the history
  • Loading branch information
Bianca Yang committed Dec 18, 2023
1 parent 76f57ad commit cb38093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posthog/tasks/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def send_email_verification(user_id: int, token: str) -> None:
},
)
message.add_recipient(user.pending_email if user.pending_email is not None else user.email)
message.send()
message.send(send_async=False)
posthoganalytics.capture(
user.distinct_id,
"verification email sent",
Expand Down

0 comments on commit cb38093

Please sign in to comment.