11 May
2003
11 May
'03
3:17 p.m.
I built a ZClass and I want to send an email if a certain property is missing, the script I am using to try to do this looks like this # Send an Email if draft == None: body="Content Provider " + AUTHENTICATED_USER.getUserName() + " has completed work on. Please review for publishing" context.MailHost.send(body, mto="jamie@brobus.net", mfrom="zope@brobus.net", subject="Content Done", encode=None) return body else: return "No Message" It when I test it alone, but for some reason when it is in the zclass it says I am not allowed to send in this context. I changed the proxy role on the script to manager but that didn't help. Jamie jamie@brobus.net
8366
Age (days ago)
8366
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jamie White