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 = 'firstname.lastname@example.org'
receivers = ['email@example.com']
message = """From: From Person <firstname.lastname@example.org>
To: To Person <email@example.com>
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"