Avatar of Jamie786
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Script to alert if no email has arrived...

Hi there,

Have a bit of a left field request, I need to monitor a mailbox and if no emails has arrived within say 1 hour (that is no email at all), then an alert is sent to another email address?

Is this going to be easy to do?  The mailbox's are on an exchange 2010 server if that helps :)...

Email ClientsExchangeVB ScriptWindows BatchInternet / Email Software

Avatar of undefined
Last Comment

8/22/2022 - Mon

For now, I can only think of some VBA code that monitors to main mailbox every now and then.
That needs a PC to be constantly on and has Outlook installed. Is that a workable solution for you?
For now, I don't see how to do this server side on the Exchange server (similar to a server side mailbox rule, which works without the need of a client to be running)

this can be run on a server of any kind really so yes its an option...

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

Should the set folders be set like this :-

Set folder = myNamespace.Pickfolder("voicemailbox").Folders("inbox") ("voicemailfolder")
Set folderitems = folder.Items

So inside a mailbox called voicemailbox and inside a folder that is nested below the inbox is a folder called voicemailfolder.  Or have I totally got the syntax wrong :)
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck

The syntax is:

Set folder = myNamespace.Folders("voicemailbox").Folders("inbox").Folders("voicemailfolder")

Open in new window

Please note, the first folder isn't really a folder, it's the name of the most top level entry (in folder view, minimize as many top folders as you can, you will end up with this name, this is the only top row that can't be minimized)

perfect that seems to work fine.. many thanks for that!

Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.