Skip to content

Commit

Permalink
lower email
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Jun 24, 2024
1 parent c76d685 commit c284052
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions codeforlife/mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ def remove_contact(
if auth is None:
auth = settings.MAIL_AUTH

if identifier == "email":
value = value.lower()

response = requests.delete(
# pylint: disable-next=line-too-long
url=f"https://{region}-api.dotdigital.com/contacts/v3/{identifier}/{value}",
Expand Down

0 comments on commit c284052

Please sign in to comment.