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):
Code:
#!/bin/usr/python
import smtplib

sender = 'from@fromdomain.com'
receivers = ['to@todomain.com']

message = """From: From Person <from@fromdomain.com>
To: To Person <to@todomain.com>
Subject: SMTP e-mail test

This is a test e-mail message.
"""

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