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

Gilles Lenfant gilles@objectis.net
Mon, 13 May 2002 23:50:22 +0200


Thanks, it works but...
Need to put explicitely \r\n between 2 header lines (\n only don't work =
!):

fullmail =3D ("To: someone@somewhere.com\r\n"
  "From: joe@bar.com\r\n"
  "Subject: No news...\r\n\r\n"
  "...Is good news")
mh =3D container.mailhost_list()[0]
mh.send(fullmail, encoding=3D"quoted-printable")
return "Done..."

----- Original Message -----=20
From: "Tino Wildenhain" <tino@wildenhain.de>
To: "Gilles Lenfant" <gilles@objectis.net>; <zope@zope.org>
Sent: Tuesday, May 07, 2002 5:16 AM
Subject: Re: [Zope] "To: undisclosed recipient;:" when sending mail =
througha script !!!
[...]