hngprojects / hng_boilerplate_python_fastapi_web

Apache License 2.0
154 stars 137 forks source link

[FIX] Fixed sending of emails to only new newsletter-subscribers. #971

Open johnson-oragui opened 3 weeks ago

johnson-oragui commented 3 weeks ago

Describe the bug Users who have already subscribed to the newsletter receive emails of newsletter confirmation when they subscribe again. This is causing unnecessary email clutter and potentially impacting deliverability rates.

To Reproduce Steps to reproduce the behavior:

  1. Subscribe to the newsletter using the provided form.
  2. Re-subscribe to the newsletter using the same email address.
  3. Verify that multiple copies of the newsletter are being sent to the subscribed email address.

Expected behavior Users should only receive the first email on first subscription regardless of how many times they subscribe.

Screenshots If applicable, add screenshots to help explain your problem. bugfix newsletter email

Desktop (please complete the following information):

Solution:

Additional context

Related Issue

newsletter bug