Re: [Zope] MailHost and Bcc

2007-07-13 Thread Chris Withers
Catherine E. Reinehr wrote: try: mailhost=getattr(context, context.superValues('Mail Host')[0].id) except: raise AttributeError, cant find a Mail Host object ...passing comment, this is extremely bad code. A bare try/except is bad. Why catch the exception in the first place, just let

[Zope] MailHost and Bcc

2007-07-11 Thread Catherine E. Reinehr
Good morning! My web site utilizes forms pretty extensively, and I've been trying to figure out how--on one particular form, an admission application--to bcc all copies to another address. Depending on which campus the applicant chooses, the app is emailed to a different person; the program

Re: [Zope] MailHost and Bcc

2007-07-11 Thread Peter Bengtsson
I doubt that the MailHost supports bcc with the send() function. I for one don't use the MailHost's send() function. I just use it's _send() function for the actual sending and I create the email message manually using the email package in python. But that's a whole different story. If you