I have to write some script for the New Mail event in Outlook XP so that any
messages from a domain NOT on a list of approved domains get moved into a
JUNK folder. I can iterate through all the messages in the inbox by
for each MailMessage in
Application.GetNameSpace("MAPI").GetDefaultFolder(6).Items
msgbox MailMessage.SenderName
next
but that only allows me to see the senders text name, not the actual email
address or domain portion thereof. Is there any way to get at the address
portion of the message sender?