[Zope] "To: undisclosed recipient;:" when sending mail through a script !!!

Dieter Maurer dieter@handshake.de
Mon, 13 May 2002 21:14:09 +0200


Gilles Lenfant writes:
 > My app sends mail through a python script like this...
 > 
 > body = "blah blah body"
 > title = "blah blah title"
 > mh = container.mailhost_list()[0]
 > mh.send(body, mto='me@somedomain.com',
 >   mfrom='mailmaster@somedomain.com',
 >   subject=title, encoding='quoted-printable')
 > return 'OK'
 > 
 > This works but the mail has not the excepted "to" header and shows...
 > 
 > "To: undisclosed-recipients: ;"
 > 
 > This is pretty unfair in the mail client.
 > 
 > Did I miss something to have the "mto" parameter of the .send() method in the "To:" header of the mail ?
If you put it there, that will be at least a workaround...


Dieter