0% found this document useful (0 votes)
124 views1 page

Email Bomb

The document provides a Python script for sending spam emails using the SMTP protocol. It includes necessary imports, email configuration, and a loop to send the email to multiple recipients. The script requires user input for email addresses and password, and it prints a confirmation message after sending the emails.

Uploaded by

leon26lemelle
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
124 views1 page

Email Bomb

The document provides a Python script for sending spam emails using the SMTP protocol. It includes necessary imports, email configuration, and a loop to send the email to multiple recipients. The script requires user input for email addresses and password, and it prints a confirmation message after sending the emails.

Uploaded by

leon26lemelle
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Open a new Python file (e.g., spam_email.py) in your preferred text editor.

Input the following script and save the file:

import smtplib
import time

# Your email address


from_addr = '[email protected]'

# Receiver email addresses, separated by commas


to_addrs = ['[email protected]', '[email protected]']

# Your email password


password = 'your_email_password'

# SMTP settings
s = smtplib.SMTP('smtp.gmail.com', 587)
s.starttls()
s.login(from_addr, password)

# Email subject
subject = 'Spam email!'

# Email message
message = 'This is a spam email.\nHave a wonderful day!'

for to_addr in to_addrs:


mail_from = from_addr
to_server = to_addr

msg = 'From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n%s' % (mail_from, to_server,


subject, message)
s.sendmail(mail_from, to_server, msg)

print('Spam emails sent to:', ', '.join(to_addrs))


s.quit()

You might also like