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.

Version (Pre-Alpha):
import smtplib

sender = ''
receivers = ['']

message = """From: From Person <>
To: To Person <>
Subject: SMTP e-mail test

This is a test e-mail message.

   smtplib.SMTP('', 25)
   smtpObj.sendmail(sender, receivers, message)         
   print "Successfully sent email"
except SMTPException:
   print "Error: unable to send email"