Re: Alert message every hour based on type/number of mail messages

  • Thread starter Ken Slovak - [MVP - Outlook]
  • Start date
Status
Not open for further replies.
K

Ken Slovak - [MVP - Outlook]

The property you would check would be item.Importance. If the value of that

property is OlImportance.olImportanceHigh it is high importance.

You can handle the ItemAdd() event on the Items collection of the Inbox, or

you can use Application.NewMail() or Application.NewMailEx(). Any of the

normal Exchange events such as ItemAdd() won't fire if more than 15 items

arrive at once, or if your code takes too long to handle a preceding

ItemAdd() event. That's an Exchange limitation. NewMail() only fires at

intervals and can miss items, so your best bet is to use NewMailEx() which

provides a delimited list of EntryID's of items that arrived since the

previous NewMailEx() event fired.

"masani paresh" <masanip@deshaw.com> wrote in message

news:9FAD1E84-E71B-49B8-BF6A-F642A0C9B914@microsoft.com...
> Thanks Ken for reply.
>
> >>How would it be possible to know about high priority messages without

> checking for them?
> We definately need to check that when mail received. I could think of way.
> Do we have something likde Item_Received event? If yes then I can maintain
> counter in some file or global variable which keep increase when new email
> received and every hour I can pop up message box saying XXX number of
> emails
> received in last hour. For High priority we can check Email Item
> property(though I dont know whether it is available or not). I think now
> you
> got the purpose. Could you help me now. I think I have two questions here:
> 1. Item_Received event is there or not?
> 2. Item.Priority : something like this is available or not.

> Thanks,
> Paresh
 
B

bWFzYW5pIHBhcmVzaA

Thanks Ken for reply. I have declared below sub routine but it is not

working. Could you please tell me correct prototype.

Private Sub Application_NewMailEx(ByVal Item As Object)

MsgBox "here it is"

End Sub

Thanks,

Paresh
wrote:


> The property you would check would be item.Importance. If the value of that
> property is OlImportance.olImportanceHigh it is high importance.

> You can handle the ItemAdd() event on the Items collection of the Inbox, or
> you can use Application.NewMail() or Application.NewMailEx(). Any of the
> normal Exchange events such as ItemAdd() won't fire if more than 15 items
> arrive at once, or if your code takes too long to handle a preceding
> ItemAdd() event. That's an Exchange limitation. NewMail() only fires at
> intervals and can miss items, so your best bet is to use NewMailEx() which
> provides a delimited list of EntryID's of items that arrived since the
> previous NewMailEx() event fired.

> >

>

> "masani paresh" <masanip@deshaw.com> wrote in message
> news:9FAD1E84-E71B-49B8-BF6A-F642A0C9B914@microsoft.com...
> > Thanks Ken for reply.
> >
> >>>How would it be possible to know about high priority messages without

> > checking for them?
> > We definately need to check that when mail received. I could think of way.
> > Do we have something likde Item_Received event? If yes then I can maintain
> > counter in some file or global variable which keep increase when new email
> > received and every hour I can pop up message box saying XXX number of
> > emails
> > received in last hour. For High priority we can check Email Item
> > property(though I dont know whether it is available or not). I think now
> > you
> > got the purpose. Could you help me now. I think I have two questions here:
> > 1. Item_Received event is there or not?
> > 2. Item.Priority : something like this is available or not.
> > Thanks,
> > Paresh


>
 
K

Ken Slovak - [MVP - Outlook]

It's shown in the Object Browser, along with the signatures of every other

Outlook method, property and event. You really need to know how to use the

Object Browser for any type of programming.

For NewMailEx the signature is NewMailEx(EntryIDCollection As String).

"masani paresh" <masanip@deshaw.com> wrote in message

news:7D47C2DB-8B3B-4417-8CC1-304DD3C24032@microsoft.com...
> Thanks Ken for reply. I have declared below sub routine but it is not
> working. Could you please tell me correct prototype.

> Private Sub Application_NewMailEx(ByVal Item As Object)
> MsgBox "here it is"
> End Sub

> > Thanks,
> Paresh
 
B

bWFzYW5pIHBhcmVzaA

Thanks Ken. Got it. Going forward I will use Object Browser a lot.

Thanks,

Paresh
wrote:


> It's shown in the Object Browser, along with the signatures of every other
> Outlook method, property and event. You really need to know how to use the
> Object Browser for any type of programming.

> For NewMailEx the signature is NewMailEx(EntryIDCollection As String).

> >

>

> "masani paresh" <masanip@deshaw.com> wrote in message
> news:7D47C2DB-8B3B-4417-8CC1-304DD3C24032@microsoft.com...
> > Thanks Ken for reply. I have declared below sub routine but it is not
> > working. Could you please tell me correct prototype.
> > Private Sub Application_NewMailEx(ByVal Item As Object)
> > MsgBox "here it is"
> > End Sub
> > > > Thanks,
> > Paresh


>
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
V Your Imap server wants to alert you to the following: Message too large Using Outlook 4
M Recurring message: your imap server wishes to alert you to the following: XXX (1032) That mail is no Using Outlook 4
T Message arrival alert settings Using Outlook 2
B IMAP server alert message Using Outlook 1
J Is it no longer possible to suppress Outlook 2019 Invalid Certificate name mismatch security alert via Registry? Using Outlook 1
J Problem with Outlook 2016 new mail tray icon alert (envelope in the systems tray) Using Outlook.com accounts in Outlook 0
M 3rd Party Certificate now Security Alert Exchange Server Administration 2
P Use VBA to alert if new incoming email fits criteria Outlook VBA and Custom Forms 0
K IMAP Server Wants to alert you to the following: cannpt rename system folder Using Outlook 1
P How to make outlook display alert appear on top of other windows whenever a new email is received? Outlook VBA and Custom Forms 1
S Shared Mailbox Alert Outlook VBA and Custom Forms 7
J Your IMAP server wants to alert you to the following: cannot remove system folder Using Outlook 3
S Different alert time for different meetings Using Outlook 1
C Need rule to alert when an email has not been replied to within 24 hours Using Outlook 1
J Create Calendar Alert Event form Mail Subject line? Using Outlook 4
O Your IMAP server wants to alert you to the following: Cannot delete folder with subfolders. Using Outlook 4
B "Your IMAP server wants to alert you to the following: cannot move folder into itself" Using Outlook 3
R PST Size Alert Using Outlook 4
O Pop-up alert calender Outlook Wishlist 3
R Notification/alert when an email has been sat in inbox for a set period of time Using Outlook 1
A Creating rule to create week folder and transfer mail using alert Using Outlook 3
P Macro/Alert for unreceived email Outlook VBA and Custom Forms 1
B Your IMAP server wants to alert you to the following: cannot rename system folders Using Outlook 8
L IMAP server wants to alert you to the following: cannot rename sytem folders Using Outlook 14
B IMAP server wants to alert you to the following cannot rename system folders Using Outlook 3
J Text alert when someone specific emails me Using Outlook 1
L Multiple mailbox incomign alert Using Outlook 2
M Outlook 2010 no alert for new headers Using Outlook 1
D Your imap server wants to alert you to the following 1432 (3306) that mail currently is not availabl Using Outlook 1
N Move to folder rule still shows desktop alert Using Outlook 2
T The following fatal alert was received: 48. Exchange Server Administration 5
J Alert when all voting responses received Using Outlook 1
X SCOM alert on Exchange 2010 - Alert: The database copy isn't replaying log files fast enough for the Exchange Server Administration 2
D Outlook 2007 To Do List: How To Fix Alert That Shows "Due in X Hours" Using Outlook 3
D Can I make the account name alert me on changes? Using Outlook 2
A New email notification - desktop alert and system tray icon NOT WORKING. Using Outlook 3
D alert fpr calenders Using Outlook 1
P I receive the following error when I am sending messages 'your imap server wants to alert you that it can not read attachement 185' the atta Using Outlook 4
D Display Alert when I receive email to an email account other than default inbox Using Outlook 1
T (1) Email alert feature not working; (2) Program not retaining copies of sent emails in sent folder or elsewhere that I can find. Using Outlook 1
T DAG Failover Alert Exchange Server Administration 1
T Sound for email alert Using Outlook 1
A Your IMAP server wants to alert you to the following: Account exceeded bandwidth limits.( Failure) Using Outlook 2
S Outlook 2010 - New Mail Alert for multiple inboxes Using Outlook 5
S Setting an alert for all incoming emails not responded to Using Outlook 1
R outlook 2007 securty alert every time you open Exchange Server Administration 2
P How to send alert emails at a specific time Using Outlook 4
P How to send alert emails at a specific time Using Outlook 1
A How do i configure Exchange 2010 to receive mails from sms alert applicaion for onward distribution Exchange Server Administration 6
C Stop Alert that Subject Line is Empty Using Outlook 5
Similar threads


















































Top