Its my first program written in Python. What its supposed to do is run a python script on a PC which emails back their IP address and other basic information. Right now the only code is for the SMTP email service but I'm hoping to get feedback from the community and optimize that code and then add a service to locate and email the IP address, user info, open ports and other possible snip-its.
sender = 'email@example.com'
receivers = ['firstname.lastname@example.org']
message = """From: From Person <email@example.com>
To: To Person <firstname.lastname@example.org>
Subject: SMTP e-mail test
This is a test e-mail message.
smtpObj.sendmail(sender, receivers, message)
print "Successfully sent email"
print "Error: unable to send email"