[ZPT] sending email

Tom Twyman fr0gger03 at hotmail.com
Tue Oct 11 21:32:15 EDT 2005


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 = 'runyaga at abc.com'
#mFrom = 'runyaga at xyz.com'
#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/



More information about the ZPT mailing list