[Zope] Mailhost API: send call
Dieter Maurer
dieter@handshake.de
Wed, 26 Jun 2002 21:33:10 +0200
Aseem Mohanty writes:
> I have a small python script called sendmail:
>
> container.aq_parent.send(messageText=msg_body, mto=to,
> mfrom='aaaa@dom.com', subject=sub, encode='base64')
>
> The problem is that when I try to call it from another PyScript, I get a
> "not allowed to call send in this context" error. If I cant do this then
> how can I send an email from within another PyScript??
The reference to "send" looks really strange!
Are you sure "container.aq_parent" has a "send" method?
Or is this your mail host object?
Note, that special privileges are required to use mail hosts...
Dieter