I’m a full-time coder, I do blogging, I do teaching in universities, I buy things from amazon, I do online transactions and what not…
What I mean by all this is that I am a person who has a lot of things going on in my mail account. ‘Your order no: 1234xyz is on the way’, ‘you got an invitation for conducting a seminar on image processing at XYZ college’, ‘You spent Rs. 1000 at XYZ shop’, ‘you have got comments on your recent blog’, ‘XYZ liked your blog’ …
I have 100’s of Emails daily to read which are legit. And in the middle of this all, I get 100’s of Email every month telling me ‘I won Rs. 1 million’, ‘My personal loan ( which is never opted for) has been approved’, ‘I have got full body checkup next week( which I didn’t order)’ etc.
And for someone like me who deals with such spam Emails daily, it’s really frustrating and I’m sure you would be getting irritated too … so what do we do?
I tried clicking their ‘unsubscribe’ link. But…
- Those link never work
- There are 100 different services mailing you that you can’t unsubscribe them all ( you can’t waste your time clicking on unsubscribe links that never work)
I got up this morning, as usual, got a mail saying, ‘Hello Mukesh, You are selected under personal loan Yojana, please fill in your details below and we would instantly approve your applied personal loan’. And I was like huh! I need to deal with this s**t.
So here’s how I dealt with these basterds spamming us every day with our private information brought from other companies and social sites.
They don’t what we coders can do … Here’s what I did.
- I gathered all such spamming emails from my email account and built a list.
- I had a text file containing 1 million quotes, I read that programmatically into a data frame ( why? keep reading)
- I wrote a big message for them explaining how their bull***t irritates us and how they mailed the wrong person and now they will have to deal with it
I wrote a quick python code that selects random email from a list of spam Emails. It adds a random quote from a list of 1 million quotes, adds the big message for them ( generated in step 3) as Email body and keeps sending such random mails back to them in an interval of 2 minutes each.
I spammed them back. I literally sent them 2567 Emails last night. Woooooow !!! Now those bastards know how it feels like to receive spam Emails.
I have decided to open-source the code. The whole source code is available at my GitHub page: Auto Email sender
Now while I did this, I’m intelligent enough not to send those from my personal Email account. I had to create a test Gmail account and 2 minutes of the interval between the mails are long enough not to get it considered as a hacking attack.
However, this article is just my experience I wanted to share, I don’t mean to encourage you guys to do the same, it’s just my personal frustration over this daily spamming that resulted into this. So If you decide to use this code, do that at your own risk…
I am gonna keep sending them 1000’s of these daily till I stop receiving spams.
It doesn’t fit into my nature, I know, but someone has to take the hard initiative to stop these evils from spamming us…
If they can steal our private information and spam us without our consent, they spammed a coder … and now, they will have to deal with it … 1000’s of Emails in their inbox…
Mission accomplished !!!! Justice done!!! Hahahaha…
Cool Stuff !!!
Anyways, don’t judge me, I just meant to share my experience. I hope you like the article.
Hit that like button if you like this article…stay tuned !!!
Doing this could be treated as a hacking attack. I'll not be responsible for consequences of anything. If you decide to do anything using this article, you agree that you are doing that at your own risk. I'll not be responsible for anything.