Saturday, October 16, 2010

Spamming

#!/usr/bin/python
import smtplib

sender = 'admin@zzz.ac.in'
receivers = ['xxx@gmail.com']
# sender = in mail transcript it will show this sender address
# receivers = actual address where we want to send the mail

message = """From: name 
To: name 
Subject: Test Mail, plz ignore

how are you ?

"""

smtpObj = smtplib.SMTP('students.iiit.ac.in')
# do change smtpObj according to your position
print "Successfully sent email"
smtpObj.sendmail(sender, receivers, message)



When this python code is run, it will send the mail to the addresses mentioned in receivers which is a list in python. prototype is similar to gmail. It does show the ip address in the complete info of the mail. But there's a way to hide ip in proxy servers. Try it.

No comments:

Post a Comment