www.i4info.org

i4info Provides the best hacking Material. Latest hacking tutorials and tools are available here. It is the best place for hackers.

Latest topics

» BitCoin Wallet stealor New
Wed Dec 07, 2016 7:46 pm by Admin

» Muhammad Shahroze Rashid | Marketing Consultant
Wed Dec 07, 2016 1:48 pm by Admin

» Muhammad Shahroze Rashid | Sharp Mind, Sharp Innovations
Wed Dec 07, 2016 1:47 pm by Admin

» How to design an effective job ad
Wed Dec 07, 2016 1:45 pm by Admin

» Teen Patti Gold Hack & 3 Patti Chips Code Extra Bonus 2016
Tue Dec 06, 2016 4:38 am by shoytan er lara

» Content Marketing | Promotional Video
Fri Dec 02, 2016 2:45 pm by Admin

» How to start an Online Business | Complete Guide
Fri Dec 02, 2016 2:30 pm by Admin

» Zeeshan Bhatti
Wed Nov 30, 2016 3:18 pm by Admin

» USAA letter for scam page
Tue Nov 29, 2016 4:20 am by Hardyjsh1966

December 2016

MonTueWedThuFriSatSun
   1234
567891011
12131415161718
19202122232425
262728293031 

Calendar Calendar

Affiliates


free forum

Forumotion on Facebook Forumotion on Twitter Forumotion on YouTubeForumotion on Google+

Visitors Counter


Flag Counter

About Author

Muhammad Shahroze Rashid
i4info
Web Developer
Web Developer & Designer,Researcher and Technical writer. An Information Security Consultant and System Auditor, a keen Security researcher.
samanabad
lahore, Punjab
54000
Pakistan
[email protected]
03064904829
DOB: 05/25/1992
Muhammad Shahroze Rashid
Muhammad Shahroze Rashid is a Web Developer and Designer, Android Developer, InfoGrapher, IT consultant and Researcher
Reviewed by Google
Google
Date published: 01/19/2016
9 / 10 stars
Muhammad Shahroze Rashid
Muhammad Shahroze Rashid Web Developer & Designer,Researcher and Technical writer. An Information Security Consultant and System Audito
samanabad
lahore
Punjab
54000
Pakistan

Bulk email sender

Share

Admin
Admin

Posts : 455
Reputation : 5
Join date : 2014-12-10
Age : 24
Location : Pakistan

Bulk email sender

Post by Admin on Wed Mar 04, 2015 1:51 pm

import smtplib import sys try: print "-----------------++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------" print "-----------------++++++++++++++++++++++++++++++++++++++--shahroze bulk email sender--++++++++++++++++++++++++++++++++++++++++++-----------------" print "-----------------++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------" # get the txt file containing the email addresses of recepients. Each email is written on a separate line # for example # [You must be registered and logged in to see this link.] # [You must be registered and logged in to see this link.] # and so on users = raw_input("\n[email sender] recepients file name: ") if ".txt" in users: pass else: print "[email sender] this is not a valid txt file" sys.exit() # get the list of recepients recepients = [] try: with open(users) as i: user_list = i.readlines() for i in user_list: recepients.append(i.strip("\n")) except IOError : print "[email sender] invalid recepients file" sys.exit() # get the required information from the user FROM = raw_input("[email sender] from: ") TO = recepients SUBJECT = raw_input("[email sender] subject: ") TEXT = raw_input("[email sender] message: ") # Prepare actual message headers = ["From: " + FROM, "Subject: " + SUBJECT, "To: " + ", ".join(TO), "MIME-Version: 1.0", "Content-Type: text/html"] headers = "\r\n".join(headers) body = "" + TEXT + "" # Credentials username = raw_input("[email sender] your gmail username: ") password = raw_input("[email sender] your gmail password: ") if "gmail.com" in username: host = "smtp.gmail.com:587" elif "ymail.com" in username: host = "smtp.ymail.com:587" elif "live.com" in username: host = "smtp.live.com:587" print "[email sender] SMTP configuration is set to %s"%host # The actual mail send print "[email sender] sending....." server = smtplib.SMTP(host) server.starttls() server.login(username,password) server.sendmail(FROM, TO, headers + "\r\n\r\n" + TEXT) server.quit() print "[email sender] email sent to all recepients"

    Current date/time is Fri Dec 09, 2016 12:33 pm