A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook add-in: Incoming email notification



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 27th 06, 09:54 PM posted to microsoft.public.outlook.program_addins
Venkat Polisetti
external usenet poster
 
Posts: 1
Default Outlook add-in: Incoming email notification

Is it possible to receive new email notificaitons from outlook add-in written
using C# and VSTO for 2005 ? Outlook add-in code needs to be notified when an
email arrives in the inbox, so that the add-in can spawn a web service for
the sender and update a target CRM system.

Thanks,
Venkat
Ads
  #2  
Old June 28th 06, 02:26 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook add-in: Incoming email notification

Sure. Use the Items.Add event on the Inbox folder's Items collection or the
NewMailEx event at the Application level.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Venkat Polisetti" wrote in
message ...
Is it possible to receive new email notificaitons from outlook add-in
written
using C# and VSTO for 2005 ? Outlook add-in code needs to be notified when
an
email arrives in the inbox, so that the add-in can spawn a web service for
the sender and update a target CRM system.

Thanks,
Venkat


  #3  
Old August 17th 06, 06:01 AM posted to microsoft.public.outlook.program_addins
Amit
external usenet poster
 
Posts: 13
Default Outlook add-in: Incoming email notification

Hello

I got a question for you.

My requirement is almost same as Andy requested, however, the request here
is to export entire email into the database.

Now, whenever the mail receive, I need to make call to the webservice that
has all data to export into database in XML format. Everything has done,
except that I am unable to know what all new email has been added.

Options that I tried:

NewMail event - it trigger only once even if I receive more than one email.
And since it does not have any parameter to know which item has added, it is
hard to get things done.

NewMailEX (...) where EntityId is a parameter to know Item that has added.
And as per the Microsoft Office website, EntityID parameter contain value
separate with , (comma) if we added more than 1 item. But I could not find
that I am receiving value in with , (comma) separated. I checked in forum
where it saying that it bahave like that when we have Exchange server so
this door closed as well!!

ItemAdd(...) The one known issue is that ItemAdd won't fire if more than 16
items are added to the folder at one time.

Any suggestion?

Cheers,
Amit



"Ken Slovak - [MVP - Outlook]" wrote:

Sure. Use the Items.Add event on the Inbox folder's Items collection or the
NewMailEx event at the Application level.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Venkat Polisetti" wrote in
message ...
Is it possible to receive new email notificaitons from outlook add-in
written
using C# and VSTO for 2005 ? Outlook add-in code needs to be notified when
an
email arrives in the inbox, so that the add-in can spawn a web service for
the sender and update a target CRM system.

Thanks,
Venkat



  #4  
Old August 17th 06, 02:25 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook add-in: Incoming email notification

I get comma separated values from NewMailEX and I use it with my Exchange
mailbox.

However, all the events you can receive for incoming mails (as well as other
events such as ItemChange and ItemRemove) won't fire if more than 16 items
are affected at once. That's a limitation of the underlying MAPI provider.
It only provides a notification that the table has changed under those
circumstances, not what items have arrived or been changed.

You can run a procedure called from a timer to check a folder to see if
anything's there (or not there) that wasn't already processed by your code.
That's the usual workaround.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Amit" wrote in message
...
Hello

I got a question for you.

My requirement is almost same as Andy requested, however, the request here
is to export entire email into the database.

Now, whenever the mail receive, I need to make call to the webservice that
has all data to export into database in XML format. Everything has done,
except that I am unable to know what all new email has been added.

Options that I tried:

NewMail event - it trigger only once even if I receive more than one
email.
And since it does not have any parameter to know which item has added, it
is
hard to get things done.

NewMailEX (...) where EntityId is a parameter to know Item that has added.
And as per the Microsoft Office website, EntityID parameter contain value
separate with , (comma) if we added more than 1 item. But I could not find
that I am receiving value in with , (comma) separated. I checked in forum
where it saying that it bahave like that when we have Exchange server
so
this door closed as well!!

ItemAdd(...) The one known issue is that ItemAdd won't fire if more than
16
items are added to the folder at one time.

Any suggestion?

Cheers,
Amit


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I get no email notification in Outlook 2003 Glen Clark Outlook - Installation 13 July 31st 06 03:18 AM
Outlook 2003 EMail Notification [email protected] Outlook - General Queries 1 May 24th 06 07:32 AM
Email notification sound in Outlook [email protected] Outlook - General Queries 0 May 14th 06 11:14 AM
Audible incoming mail notification Manuel Davila Outlook - General Queries 1 May 3rd 06 08:22 PM
Add Reminder To Incoming Meeting Requests Joseph Rees Outlook and VBA 5 March 7th 06 06:49 PM


All times are GMT +1. The time now is 12:08 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2024 Outlook Banter.
The comments are property of their posters.