Okay, so “may mailman husband”… It’s a bit of a weird phrase, but it got me thinking about setting up email notifications for, well, anything! I figured I’d give it a shot and document the whole messy process.
First, I needed to pick a tool. I wanted something simple, and I vaguely remembered hearing about “Mailman” a long time ago. So, I did some digging. Turns out, Mailman is more for managing mailing lists, like for newsletters and stuff. It’s not really what I was going for. That was a bit of a dead end, but hey, that’s part of the process, right?

So, back to square one. I needed something that could send emails based on, like, triggers. I thought about maybe using Python, since I’m kinda okay with it. I could probably whip up a script that checks for changes in a file or something and then sends an email.
I started by messing around with the `smtplib` library in Python. That’s the thing you use to connect to an email server and send stuff.
- First try: I tried sending a basic test email. I got a bunch of errors about authentication.
- Second Try: I Looked for authentication error solutions on Internet.
- Third try: I spent like an hour fiddling with my Gmail settings, trying to allow “less secure apps” (which sounds super sketchy, by the way).
- Fourth try: Success! I finally got a test email to go through. It was a huge relief.
But now, the question is, how do I use my script?. I just want to schedule it. I’ve been playing with Task Scheduler a bit, but I still have a lot to learn.
But at this point, I needed a * this is my process.