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

Scanning all incoming e-mails



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 30th 08, 06:33 PM posted to microsoft.public.outlook.program_addins
Al_21_11[_2_]
external usenet poster
 
Posts: 13
Default Scanning all incoming e-mails

Hi

scan all new incoming e-mails and post archiving email by posting to DB. i
have the second part down. I will be calling a class that will handle posting
record to DB, but need to know how can i get all incoming e-mails.

Thanks

  #2  
Old December 30th 08, 06:43 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Scanning all incoming e-mails

Either use Inbox.Items.Add() or use Application.NewMailEx().

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Al_21_11" wrote in message
...
Hi

scan all new incoming e-mails and post archiving email by posting to DB. i
have the second part down. I will be calling a class that will handle
posting
record to DB, but need to know how can i get all incoming e-mails.

Thanks


  #3  
Old December 30th 08, 09:44 PM posted to microsoft.public.outlook.program_addins
Al_21_11[_2_]
external usenet poster
 
Posts: 13
Default Scanning all incoming e-mails

HI Ken,
Thanks that works. Is there a way of running this same routine when users
use outlook web access?

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

Either use Inbox.Items.Add() or use Application.NewMailEx().

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Al_21_11" wrote in message
...
Hi

scan all new incoming e-mails and post archiving email by posting to DB. i
have the second part down. I will be calling a class that will handle
posting
record to DB, but need to know how can i get all incoming e-mails.

Thanks



  #4  
Old December 31st 08, 03:15 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Scanning all incoming e-mails

No. OWA runs on an IIS server and is javascript code that directly accesses
the Exchange mailbox. It has nothing to do with Outlook or Outlook code. For
something to work with OWA you would need server side code that runs as an
Exchange event sink on the mailbox folders you're interested in. If you go
that route you wouldn't use the Outlook code at all since that would run
similar code twice.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Al_21_11" wrote in message
...
HI Ken,
Thanks that works. Is there a way of running this same routine when users
use outlook web access?


  #5  
Old January 6th 09, 03:38 PM posted to microsoft.public.outlook.program_addins
Al_21_11[_2_]
external usenet poster
 
Posts: 13
Default Scanning all incoming e-mails

HI
ken
would the same routine work if outlook has several different e-mails
accounts. is there a way i can specify which e-mails account to scan incoming
e-mails from?

thanks
al

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

No. OWA runs on an IIS server and is javascript code that directly accesses
the Exchange mailbox. It has nothing to do with Outlook or Outlook code. For
something to work with OWA you would need server side code that runs as an
Exchange event sink on the mailbox folders you're interested in. If you go
that route you wouldn't use the Outlook code at all since that would run
similar code twice.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Al_21_11" wrote in message
...
HI Ken,
Thanks that works. Is there a way of running this same routine when users
use outlook web access?



  #6  
Old January 6th 09, 10:16 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Scanning all incoming e-mails

You can use the MailItem.SenderEmailAddress property to see what email
address sent an email and you can use To for who it was sent to. However, To
usually is just a name like "Ken Slovak" and not an email address. For that
you'd need to get each item's Recipients collection and get each Recipient
object. There may be more than one of course.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Al_21_11" wrote in message
...
HI
ken
would the same routine work if outlook has several different e-mails
accounts. is there a way i can specify which e-mails account to scan
incoming
e-mails from?

thanks
al


 




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
Incoming e-mails kr Outlook - Installation 1 August 2nd 08 10:48 AM
how do I change the color on incoming e-mails Comnight Outlook - Using Contacts 1 August 13th 07 08:43 PM
No incoming e=mails Lofty. Outlook Express 6 August 8th 07 11:12 AM
HELP. I cannot follow links in incoming e-mails richjenn Outlook Express 3 May 17th 06 09:32 PM
How do I highlight incoming mails where I am BCC'd? Still Blushing Outlook - Installation 0 February 1st 06 01:38 AM


All times are GMT +1. The time now is 09:28 AM.


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