[Zope] How to get the email of curent User
hohage at muenster.de
hohage at muenster.de
Tue Nov 4 06:46:48 EST 2003
Hello,
even as I don't understand what your problem is I give you some hints:
1.) here is a script that sends mails with python script->
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
~runyaga'
mTo = 'runyaga at abc.com'
mFrom = 'runyaga at xyz.com'
mSubj = 'mail subject'
mailhost.send(mMsg, mTo, mFrom, mSubj)
You can find it on -> http://www.zopelabs.com/cookbook/991178206
To the question with the email-adress of the current user.
If you use plain Zope, a user doesn't have an email-adress by default.
You can surely connect email-adresses with users but this is your wown task how
to do it :-)
If you are using CMF or another addon I unfortunately can't help you with it.
More information about the Zope
mailing list