Describe the bug:
When a user register and sign up for an account or completes a purchase, no confirmation e-mail is sent to the given e-mail address.
When debug = True, registration link is seen in the terminal.
When debug = False, an error 500 occurs.
When testing in Django shell it confirms email test is successfully completed.
Trying to reset password through a reset link is also affected by the
Related user stories:
Expected behavior:
An e-mail to confirm the user registration should be sent to the user's entered email inbox.
An e-mail to confirm a completed purchase should be sent to the user's entered email inbox.
User should be able to reset password through a link sent by email.
Solution:
Compatibility issues between Django 3.2 and the Python version was being used. Specifically, there is conflicts with the SMTP library, which resulted in the failure of email functionality in the production environment.
Python Version Downgrade:
A file named "runtime.txt" was added to the root folder of the project. Inside this file, the Python version was downgraded to "python-3.9.18". This downgrade was necessary to resolve the compatibility issues between Django 3.2 and the SMTP library.
Testing:
After downgrading the Python version, the application was re-tested in the production environment and reployed in Heroku. Registration, purchase confirmation, and password reset functionalities were thoroughly tested to ensure that emails were sent successfully without any errors.
By downgrading the Python version to "python-3.9.18" and resolving the compatibility issues with the SMTP library, the email functionality in the production environment was successfully restored. Users can now receive confirmation emails for registration and password reset functionalities without any interruptions.
Describe the bug: When a user register and sign up for an account or completes a purchase, no confirmation e-mail is sent to the given e-mail address. When debug = True, registration link is seen in the terminal. When debug = False, an error 500 occurs. When testing in Django shell it confirms email test is successfully completed. Trying to reset password through a reset link is also affected by the Related user stories:
17 User Password Recovery
18 Registration Email Confirmation
Email test success screenshot here
Expected behavior: An e-mail to confirm the user registration should be sent to the user's entered email inbox. An e-mail to confirm a completed purchase should be sent to the user's entered email inbox. User should be able to reset password through a link sent by email.
Solution: Compatibility issues between Django 3.2 and the Python version was being used. Specifically, there is conflicts with the SMTP library, which resulted in the failure of email functionality in the production environment.
Python Version Downgrade: A file named "runtime.txt" was added to the root folder of the project. Inside this file, the Python version was downgraded to "python-3.9.18". This downgrade was necessary to resolve the compatibility issues between Django 3.2 and the SMTP library.
Testing: After downgrading the Python version, the application was re-tested in the production environment and reployed in Heroku. Registration, purchase confirmation, and password reset functionalities were thoroughly tested to ensure that emails were sent successfully without any errors.
By downgrading the Python version to "python-3.9.18" and resolving the compatibility issues with the SMTP library, the email functionality in the production environment was successfully restored. Users can now receive confirmation emails for registration and password reset functionalities without any interruptions.
Solved: YES