>>> context.MailHost.send('bodytext', "[EMAIL PROTECTED]",
>>> This script produces: HTTP/1.1 204 No Content
>>Moral of the story: if you want sane things to happen, make sure your
>>script returns a string output.
>>Otherwise you risk tickling some of the more arcane "features" of Zope
>>2's publisher. They include "no content"
>>responses if you return None and even weirder things if you return a
>>This isn't a bug, you're doing something silly, stop doing it ;-)
Here i must add that it is an test script for the list only, the real script
which has produce the error is bigger and it has an output of string. But
the part which is sending the mail has produce the double emails, so i debug
Here is a bit of the original script, so tell me again why i get the error,
because it has an string output.
recp_list = 
for i in context.sql_query():
mMsg = 'test'
mTo = str(i["m_to"])
mFrom = str(i["m_from"])
mSubj = str(i["l_subject"])
context.MailHost.send(mMsg, mTo, mFrom, mSubj)
recp_output = str(recp_list)
mRet = 'E-Mails send to:<br>' + recp_output + '<br><br>'
This script is the part of the devil ;) It has produce the double emails, i
have cut some lines codes to get it faster to understand.
Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists -