|Subject:||Re: Msg.Recipients.Items.Address Exception?|
|Posted by:||Remy Lebeau (TeamB) (firstname.lastname@example.org)|
|Date:||Wed, 6 Oct 2004|
"Sabine Dinis Blochberger" <email@example.com> 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