G
Guest
How can I access the header information in an incoming e-mail via VBA?
I want to draw out the "'Received: from c1m2.emaildefenseservice.com
(c1m2.emaildefenseservice.com [216.40.36.34])" line, from the header info
copied below, so that I can generate a list of domain names we received
mail from. Is this possible. If so what VBA code should I use to access the
header information? Notice the domain name in the "Recieved from" is
different than Domain in the return path of the senders name.
Thank you in advance for any assistance.
Tom
I am receiving the following:
'Return-Path: <[email protected]>
'Received: from c1m2.emaildefenseservice.com (c1m2.emaildefenseservice.com
[216.40.36.34])
' by mail.viclink.com (8.11.7/8.11.7) with SMTP id i4OJZGm33527;
' Mon, 24 May 2004 12:35:16 -0700 (PDT)
'Date: Mon, 24 May 2004 12:35:16 -0700 (PDT)
'From: ivy_rowe@ hotmail.com
'Message-Id: <[email protected]>
'Received: from h000094c76858.ne.client2.attbi.com [24.131.167.237] (HELO
h000094c76858.ne.client2.attbi.)
' by c1m2.emaildefenseservice.com (mxl_mta-1.3.7-29) with SMTP id
b6e42b04.32104.119.c1m2;
' Mon, 24 May 2004 15:35:07 -0400 (EDT)
'MIME-Version: 1.0
'Subject: Now
'x -Originating - IP: [243.116.52.188]
'x -Originating - Email: [[email protected]]
'x -Sender: jburns@ freelin - wade.com
'Received: from 172.201.86.102 by by6fracture.ear0.hotmail.com with
HTTP;Mon, 24 May 2004 02:48:52 GMT
'x -MX - Spam: exempt
'X-MX-MAIL-FROM: <[email protected]>
'x -MX - Source - IP: [24.131.167.237]
'X-RAVMilter-Version: 8.4.3(snapshot 20030217) (mail.viclink.com)
'X-UIDL: SN@!!FEm!!S0H"!>Pb"!
I want to draw out the "'Received: from c1m2.emaildefenseservice.com
(c1m2.emaildefenseservice.com [216.40.36.34])" line, from the header info
copied below, so that I can generate a list of domain names we received
mail from. Is this possible. If so what VBA code should I use to access the
header information? Notice the domain name in the "Recieved from" is
different than Domain in the return path of the senders name.
Thank you in advance for any assistance.
Tom
I am receiving the following:
'Return-Path: <[email protected]>
'Received: from c1m2.emaildefenseservice.com (c1m2.emaildefenseservice.com
[216.40.36.34])
' by mail.viclink.com (8.11.7/8.11.7) with SMTP id i4OJZGm33527;
' Mon, 24 May 2004 12:35:16 -0700 (PDT)
'Date: Mon, 24 May 2004 12:35:16 -0700 (PDT)
'From: ivy_rowe@ hotmail.com
'Message-Id: <[email protected]>
'Received: from h000094c76858.ne.client2.attbi.com [24.131.167.237] (HELO
h000094c76858.ne.client2.attbi.)
' by c1m2.emaildefenseservice.com (mxl_mta-1.3.7-29) with SMTP id
b6e42b04.32104.119.c1m2;
' Mon, 24 May 2004 15:35:07 -0400 (EDT)
'MIME-Version: 1.0
'Subject: Now
'x -Originating - IP: [243.116.52.188]
'x -Originating - Email: [[email protected]]
'x -Sender: jburns@ freelin - wade.com
'Received: from 172.201.86.102 by by6fracture.ear0.hotmail.com with
HTTP;Mon, 24 May 2004 02:48:52 GMT
'x -MX - Spam: exempt
'X-MX-MAIL-FROM: <[email protected]>
'x -MX - Source - IP: [24.131.167.237]
'X-RAVMilter-Version: 8.4.3(snapshot 20030217) (mail.viclink.com)
'X-UIDL: SN@!!FEm!!S0H"!>Pb"!