[Zope] Re: Conditional dtml-boundary in dtml-sendmail

Josef Meile jmeile at hotmail.com
Fri Apr 11 08:01:28 EDT 2008


> The email library should be available to use with a Script (Python) and 
> can be done all within the ZMI. Otherwise maybe use dtml-try?
Well, I should have mentioned this: the zope installed on the server is
2.8.x. Yes, it is old, but it is because all the page uses an own CMS
based on silva, which isn't compatible with newer versions.

I tried this:

import email

and it worked; however, as soon as I tried this:

from email.MIMEText import MIMEText
msg = MIMEText('Sending mail through python module')

or

import email
msg = email.MIMEText.MIMEText('Sending mail through python module')

An Unauthorized exception comes. So, I guess MIMEText is protected at
least on 2.8.x. But I guess in 2.11.x is protected as well, or am I
wrong?

Thanks for your reply. I guess there is no way of achieving what I want
on dtml, so, I will try to do it an external method and try to convince
people there to store it on the server or I will have to do it on my
own server and embebbed it on an iframe or call an external link.

Best regards
Josef


More information about the Zope mailing list