Nancy Donnelly wrote:
    mailhost=getattr(context, context.superValues('Mail Host')[0].id)

'Mail Host' won't find a Maildrop Host...


Bare excepts like this are extremely bad programming practice...

    raise AttributeError, "Can't find a Mail Host object"

Why not just let the original exception get raised?!

Yet, when I go to fire up the script, the email is not sent. What am I doing 
wrong here?

Quite a lot, I'm afraid...


Simplistix - Content Management, Zope & Python Consulting

Zope maillist  -
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to