Page 1 of 1 1
Topic Options
#168290 - 2006-09-22 01:06 PM Exchange server "You have mail" notification at logon
ChrisJ Offline
Fresh Scripter

Registered: 2006-09-22
Posts: 6
We have a big issue with staff not checking their email, many saying because it takes to long just to find they don't have any. I want to pop a message at logon notifying them if they have any email. Is it possible to query an exhange server from the command line (I can't find it in Kix) to allow me to pop up a message saying "You have mail!"?

I tried google but have not come up with anything yet.

ChrisJ

Top
#168291 - 2006-09-22 01:56 PM Re: Exchange server "You have mail" notification at logon
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Chris,

Have a look at this thread Getting mailbox size and number of items from exchange.. There is an example from Radimus (his 2nd post in the thread) in it that does something with new mail.

[edit]
Just checked it and it works fine (WinXP SP2, Outlook 2K3).
I replaced the sendmessage with a message box.
You can repeat the message until they get sick of it and finally check the mailbox.
[/edit]


Edited by Mart (2006-09-22 02:00 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#168292 - 2006-09-22 02:04 PM Re: Exchange server "You have mail" notification at logon
Björn Offline
Korg Regular
*****

Registered: 2005-12-07
Posts: 953
Loc: Stockholm, Sweden.
Quote:


[edit]
..You can repeat the message until they get sick of it and finally check the mailbox...
[/edit]




Lol. That's one way of solving it

A question tho - how slow is your servers/clients ?? Users too lazy to check their mail due to that it takes so long to fire up outlook/mail-client ?

Top
#168293 - 2006-09-22 02:24 PM Re: Exchange server "You have mail" notification at logon
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
We had this issue when I worked in Alaska (56K via sattelite). Our answer was to put outlook in the startup group and force it to open for everyone. (Came at the direction of the agency director)
Top
#168294 - 2006-09-22 02:26 PM Re: Exchange server "You have mail" notification at logon
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
I used to force it open as well, but sometimes it conflicted with updates
Top
#168295 - 2006-09-22 02:30 PM Re: Exchange server "You have mail" notification at logon
Björn Offline
Korg Regular
*****

Registered: 2005-12-07
Posts: 953
Loc: Stockholm, Sweden.
Ah... I'm getting spoiled.. our customers lowest sites now run at at least 0,5 at one customer, and at least 2mbit at another.. Then I can understand the slow-part, and agree about the autostart.
Top
#168296 - 2006-09-22 03:38 PM Re: Exchange server "You have mail" notification at logon
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Quote:

Quote:


[edit]
..You can repeat the message until they get sick of it and finally check the mailbox...
[/edit]




Lol. That's one way of solving it

A question tho - how slow is your servers/clients ?? Users too lazy to check their mail due to that it takes so long to fire up outlook/mail-client ?




LOL indeed that's one way to educate your users. Not a very friendly way bur I assure you it works great.
It all depends on the frequency on which you repeat the message. Once an hour or so......


Edited by Mart (2006-09-22 03:40 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#168297 - 2006-09-22 03:43 PM Re: Exchange server "You have mail" notification at logon
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
I wrote a tool a while back that would do the check for unread messages thing and it would run hidden, send a sendmessage to @WKSTA with the unread messages count.
Top
#168298 - 2006-09-22 04:08 PM Re: Exchange server "You have mail" notification at logon
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Focus stealers, eh?



I hate it when 'admins' decide such things and I always found a way to prevent those
_________________________



Top
#168299 - 2006-09-22 04:38 PM Re: Exchange server "You have mail" notification at logon
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
[Rant]
On the topic of "hate", ja I hate focus stealers too and disable notification on my email. I hate too that people expect that you should respond to an email seconds after its arrival. Email has gotten to be as rude as telephones... people expect you to stop whatever you're doing and answer them before the fourth ring! Usually it is the same "rude" person that just sent an email 30 seconds before. They never leave a voice message but rather try the cellphone seldom followed by the pager.

In our offices, we can hear each other's phones and all have different ringtones. We also have caller ID and see each other's incoming calls. We can see and hear our users make the rounds caling each of us in turn, seldom letting it go more than 3 rings and never long enough to leave a voice message.

I sometimes let my phone go to voicemail and may go for hours without checking my email. If people think they are important enough and want me bad enough they can come to my office.

When I am on call it is different although in most cases the caller is abusing priority but the call must be answered.

Oh, and what's up with the 3 or 4 rings and then hanging up? Who can possibly answer a call before the 3rd ring? Our cellphone service will often ring three times on the caller's end before ringing once on the cellphone. Most times before I can safely pull over to the side of the road, the phone stops ringing and they seldom even try calling back. What if they fat fingered the number and got it wrong? Usually they will just call my boss instead to complain I did not answer fast enough.

[/Rant]

Top
#168300 - 2006-09-22 05:13 PM Re: Exchange server "You have mail" notification at logon
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Just to rant some more.....

We have people calling us on our desk phone and get the busy signal. Usually you are busy making or answering a call but these people heave some weird wiring in there head so they go and call you cell phone if they get the busy signal on your desk phone. What do they expect answer your cell phone and desk phone at the same time or something

But this is all off topic. Maybe we should get on topic again.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#168301 - 2006-09-22 06:38 PM Re: Exchange server "You have mail" notification at logon
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
There's times for scripting, and there's times when the management doesn't do their job... this is a case of the latter if you ask me. Doesn't help to throw a wet towel of Outlook in their face. The problem isn't Outlook of course...

Edited by masken (2006-09-22 06:38 PM)

Top
#168302 - 2006-09-23 02:38 PM Re: Exchange server "You have mail" notification at logon
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Not sure management can really do anything about a 56k satellite connection. In this particular case, the once-an-hour check via script instead of having to open Outlook sounds like a viable solution to this specfic problem.

BTW,one reason I sometimes don't leave message is because I rotate through two or three different people to get an urgent answer that require some one-to-one information exchnage that might not be doable as efficiently via email.

BTW2, we have an official 24 hour response window for most regular requests and communications, unless it is something urgently timed. However, we have times where we require response times within minutes/hour due to the criticality of the issue at hand. You don't want to derail a $100M deal just because you didn't answer your email and a ratings agency is now trashing your bond ratings
_________________________
There are two types of vessels, submarines and targets.

Top
#168303 - 2006-09-25 11:52 AM Re: Exchange server "You have mail" notification at logon
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
56k connections? I hope you're using OL2003 and cached mode

One idea would be to have a script go checking your OMA (Outlook Mobile Access) site with IE scripting. Would be the least network overhead (the OMA page is about 1-2kb in size) and also a fairly easy scripting challenge I guess


Edited by masken (2006-09-25 11:54 AM)

Top
#168304 - 2006-09-25 01:25 PM Re: Exchange server "You have mail" notification at logon
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
btw, here's a sample script:

Automating Microsoft Outlook: Script to display unread Outlook mail items

Top
#168305 - 2006-09-25 02:21 PM Re: Exchange server "You have mail" notification at logon
ChrisJ Offline
Fresh Scripter

Registered: 2006-09-22
Posts: 6
Any idea how I can get it to read just the number of new emails? Ie those that are unread? Most people leave mail in their inbox. I just want to know the number of unread mails not the total number of emails.

Chris

Top
#168306 - 2006-09-25 02:38 PM Re: Exchange server "You have mail" notification at logon
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Some code from Radimus posted in the thread I linked to in my first post.

Code:

Break on

$Outlook = CreateObject("Outlook.Application")
$NS = $Outlook.GetNamespace("MAPI")
$Fldr = $NS.GetDefaultFolder(6)
$Unread = $Fldr.UnReadItemCount
$Outlook = 0
If $unread
?"You have " $unread " unread email messages"
EndIf

_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#168307 - 2006-09-25 03:23 PM Re: Exchange server "You have mail" notification at logon
ChrisJ Offline
Fresh Scripter

Registered: 2006-09-22
Posts: 6
Forgot to say, users all use OWA, Outlook Web Access so that they get the same interface whether at home or work. So I'm not sure if the outlook references will work.

Chris

Top
#168308 - 2006-09-25 04:33 PM Re: Exchange server "You have mail" notification at logon
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
Quote:

Any idea how I can get it to read just the number of new emails? Ie those that are unread? Most people leave mail in their inbox. I just want to know the number of unread mails not the total number of emails.

Chris



The OMA-approach that I mentioned would work. Read above.

If you have OWA, then there's alerady a built-in notification though, if you have IE started that is...


Edited by masken (2006-09-25 04:34 PM)
_________________________
The tart is out there

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1574 anonymous users online.
Newest Members
BeeEm, min_seow, Audio, Hoschi, Comet
17882 Registered Users

Generated in 0.091 seconds in which 0.041 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org