sending email

"Tom Twyman" <[email protected]> Tue, 11 Oct 2005 21:32:15 -0400
Newsgroups gmane.comp.web.zope.page-templates
Message-ID <[email protected]>
Hello all!

I am trying to send an email from a login page as a form of confirmation.  I 
have the following script inserted into the python script that performs the 
login:

BTW - I DO have a MailHost object, set to the correct FQDN according to my 
provider.

# email them confiirmation
#try:
#    mailhost=getattr(context, context.superValues('Mail Host')[0].id)
#except:
#    raise AttributeError, "cant find a Mail Host object"

#mMsg = 'a testful email message \n that contains a few line breaks. \n 
-ME!'
#mTo = '[email protected]'
#mFrom = '[email protected]'
#mSubj = 'mail subject'
#
#mailhost.send(mMsg, mTo, mFrom, mSubj)

I have tried several variations on this, but I never receive any emails when 
I set it up.  Can anyone see anything wrong with the code?

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/