mraza007 / blog

Currently hosted on vercel
https://blog-vert-iota.now.sh
MIT License
0 stars 0 forks source link

2024/Python-Commandline-Tools-Part-1/ #11

Open utterances-bot opened 6 months ago

utterances-bot commented 6 months ago

Email Testing with Python's smtpd Module | Muhammad

In this post, we will dive deep into python smtpd module and explore its capabilities and how it can used for local testing

https://muhammadraza.me/2024/Python-Commandline-Tools-Part-1/

tiendq commented 6 months ago

It's no longer ready for anyone. "The smtpd module has been removed according to the schedule in PEP 594, having been deprecated in Python 3.4.7 and 3.5.4. Use aiosmtpd PyPI module or any other asyncio-based server instead. (Contributed by Oleg Iarygin in gh-93243.)"

melvinkcx commented 6 months ago

Another alternative for testing emails is mailhog

mraza007 commented 6 months ago

@melvinkcx Thanks for sharing, mailhog seems pretty cool

mraza007 commented 6 months ago

@tiendq thanks for sharing that,

I realized after writing that post that smtpd was deprecated lol

hedinasr commented 6 months ago

@mraza007 you can use https://github.com/aio-libs/aiosmtpd.