24 Nov
2001
24 Nov
'01
10:10 a.m.
Hi, Bruce Eckel wrote:
Maybe there's a better way to do this.
How about this: can I use the Zope "MailHost" object from within an external method to send mail?
yes, the interface is described in the API Reference of the Zope Book: http://www.zope.org/Members/michel/ZB/AppendixB.dtml Use it like: subject = "E-Mail Subject" mto = "zope@zope.org" mfrom = "hohoff@rz.uni-potsdam.de" message = """To: zope@zope.org This is my E-Mail.""" self.NameOfMailHostObject.send(message, mto, mfrom, subject) ... Holger