Am Sun, 17 Sep 2006 23:43:57 +0200 schrieb Jan G. Thorstensen:
NewMail fires only once for a bundle of messages. Instead you can use
ItemAdd, which fires for each message as long as thereīre not more than 16
at once.
That event has an Item argument, which is a reference to the incoming
message. Simply read its SenderName (thatīs the senderīs display name),
Subject and Body properties.
In OL 2000 thereīs no way to read the Senderīs address directly. For that
youīd need CDO 1.21 or Redemption (
www.dimastr.com).
--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
--
www.VBOffice.net --
I am using Outlook2k and WinXP. When a new mail arrives,
I want to get some information like the name of the sender, what is
the subject and body text?
How can I retrieve such properties from the incoming mail item?
I thought this was a good place to start...
Private Sub Application_NewMail()
...code...
End Sub
Any suggestions or code sample is very much apprieciated.
Regards
Jan.