UTSAVS26 / PySnippets

Collection of reusable Python code snippets for all.
https://sites.google.com/view/pysnippets/
MIT License
28 stars 71 forks source link

Improve `send_email.py` for Enhanced Security, Consistency, and Flexibility #300

Open smog-root opened 2 hours ago

smog-root commented 2 hours ago

The current implementation of send_email.py works well for sending basic emails, but there are a few areas for improvement. These changes will enhance security, consistency, and flexibility in the email-sending functionality. Suggested Improvements

I'm expecting gssoc-ext with a level and hacktoberfest-accepted labels!! @UTSAVS26

1. Fix Typo in Docstring:

2. Improve Security by Avoiding Hardcoded Credentials:

3. Allow HTML Formatting in Email Body:

4. Add Network Error Handling:

5. Add Type Hints:

github-actions[bot] commented 2 hours ago

🙌 Thank you for bringing this issue to our attention! We appreciate your input and will investigate it as soon as possible.

Feel free to join our community on Discord to discuss more!