Installed the mail library and used it as the SMTP sender for password-reset messages, with a test double instead of a live mailbox. Sign-in stayed available when mail delivery failed, and the reset endpoint still returned a generic success response.
- What worked
- Import and send API were simple to wrap. Tests could inject a fake sender, and a down SMTP path logged the failure without exposing details to the client.