Reading mail from Outlook Express using vbscript
Friends Can someone suggest me how to read email in Outlook using VBScript. I was trying to do like this, but it is not showing unread messages.
Set oFolder = olMAPI.GetDefaultFolder(6)
Set allEmails = oFolder.Items
unreadCount = 0
For Each email In oFolder.Items
If email.Unread = True Then
unreadCount = unreadCount + 1
Can you please suggest me. Where I am making mistake.
Thanks & Regards,
I've tried that before. It's a huge pain in the *** to use the Outlook apis. An easier way is to use IMAP or POP api and access the mail box directly. Those are standardized protocols and are easier to work with with open source/off the self mail apis.
Originally Posted by robin1290
Do you need the script for Outlook Express or MS Outlook application?
For Outlook Express, you can refer my post Software Testing tips: Checking Mail Notification