[Zope-dev] Mail and zope

morten@esol.no morten@esol.no
Mon, 27 Nov 2000 17:43:33 GMT+1


> Is there anyway to get a hold off the message-id of e-mail sent through
> the sendmail tag?

As far as I can see, there isn't any generation of a message-id in the
MailHost product.

If you want to get a hold of the message-id, the right thing would
probably be to generate it yourself, and adding it in the header
field of the message you're sending..

I.e., something like this (untested):
<dtml-call "REQUEST.set('message_id', _.str(_.whrandom.random()) +
            '@yourhost.com')">

<dtml-sendmail>
To: <dtml-var mail_to>
From: test@test.host
Message-ID: <dtml-var mesage_id>

</dtml-sendmail>

Although using a message-id generated from one of the python library
modules would be a better way of doing it..

HTH.

-Morten