[Zope] Calling a DTML Method from within an External Method

Lennart Regebro lennart@regebro.nu
Sat, 24 Nov 2001 12:56:35 +0100


> How about this: can I use the Zope "MailHost" object from within an
> external method to send mail? I've looked at the MailHost source
> code but it's not obvious how I would make the calls.

mh.send("A long string that is the message", "foo@bar,com, bar@foo.com",
"from_me@mydomain.com")

Where mh is the MailHost object (you can get it from the context of your
external script).