|Subject:||Re: Msg.Recipients.Items.Address Exception?|
|Posted by:||Remy Lebeau (TeamB) (email@example.com)|
|Date:||Wed, 6 Oct 2004|
"Sabine Dinis Blochberger" <firstname.lastname@example.org> wrote in message
> I'm trying to know the envelope-to field of a *received* email.
> If I use
> envTo := Msg.Recipients.Items.Address;
> I get an "index exceeds maximum (0)" exception.
TIdMessage does not parse the "envelope-to" header at all. You will have to
retreive and parse it manually:
envTo := Msg.Headers.Values['Envelope-To'];
// parse envTo as needed...
Msg.Recipients.Items.Address Exception? posted by Sabine Dinis Blochberger on Wed, 06 Oct 2004