how should i do this?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,

i'm going to be receiving an email on a regular basis (once a week let's say).
i've automated most of the process which is to extract an attachment from an
email and ftp to target. but i don't know how i should check for the email.

would i write something in outlook vba to check each time an email comes in
for a particular subject? or should i write something on the .net side like a
timer program or something to check at timed intervals.

the mailbox is setup only for this application.

thanks for any help,
rodchar
 
rodchar said:
i'm going to be receiving an email on a regular basis (once a week let's
say).
i've automated most of the process which is to extract an attachment from
an
email and ftp to target. but i don't know how i should check for the
email.

would i write something in outlook vba to check each time an email comes
in
for a particular subject? or should i write something on the .net side
like a
timer program or something to check at timed intervals.

You can do that on the .NET side:

Sending and receiving email
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=email&lang=en>

Support policy for Outlook APIs that are used in the .NET Framework
environment
<URL:http://support.microsoft.com/?scid=kb;EN-US;872895>

How to use the Microsoft Outlook Object Library to retrieve a message from
the Inbox by using Visual C# .NET
<URL:http://support.microsoft.com/?scid=kb;EN-US;310258>

HOW TO: Retrieve Unread Messages from Inbox by Using Outlook Object Model in
Visual Basic .NET
<URL:http://support.microsoft.com/?scid=kb;EN-US;313795>

How to retrieve specific messages using the Find method and the Restrict
method in Visual C# .NET
<URL:http://support.microsoft.com/?scid=kb;EN-US;310265>
 
so on the .Net side i can capture an event from outlook (say like when a new
message arrives tell my program to start running)?
 
You may be able to run the outlook client and respond to some event
programmatically but that would require you to have outlook running, you may
not want to do that. I would suggest using a scheduled process to check the
mail box and process the messages using the code samples provided. You can
use AT for scheduling on the client side or the SQL Server job system for
more server centric process scheduling.

HTH

Dan
 
by the way...
can you use the Outlook object library without the Outlook client installed?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top