PC Review


Reply
Thread Tools Rate Thread

Can this be done in Outlook?

 
 
=?Utf-8?B?U2ltZW9u?=
Guest
Posts: n/a
 
      5th Nov 2004
This is what I'm trying to do.

I would like for outlook to check all incoming mail containing a certain
word in the subject. (That's the easy part)

But this word needs to trigger a batch file to run a few commands that will
include another word from the emails subject. Once the batch file completes
its process, a .txt file is created. This .txt file needs to be attached to
the original mail then forwarded to certain email accounts.

I hope this makes sense. Can anyone help?
 
Reply With Quote
 
 
 
 
Michael Bauer
Guest
Posts: n/a
 
      5th Nov 2004
Hi Simeon,

for which part do you need help?

- Maybe you can move all mails with the certain word by a rule to
another folder.
- A good point to check incoming mails is the ItemAdd event of the
Folder.Items.
- The InStr-function helps you extracting additional words from the mail
subject.
- Normally your VBA code goes on after starting the batch file. Here I
just found a sample (not tested by myself) that forces your code waiting
for the end of the batch job:
http://www.freevbcode.com/ShowCode.asp?ID=3441
- Attaching a file, look for: MailItem.Attachments.Add
- Forwarding: set ForwardItem=MailItem.Forward


--
Viele Grüße
Michael Bauer


"Simeon" <(E-Mail Removed)> wrote in message
news:83EE52F1-5C2F-4560-A3B1-(E-Mail Removed)...
> This is what I'm trying to do.
>
> I would like for outlook to check all incoming mail containing a

certain
> word in the subject. (That's the easy part)
>
> But this word needs to trigger a batch file to run a few commands that

will
> include another word from the emails subject. Once the batch file

completes
> its process, a .txt file is created. This .txt file needs to be

attached to
> the original mail then forwarded to certain email accounts.
>
> I hope this makes sense. Can anyone help?


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
outlook add-in, add-in for outlook, outlook contact capture, capturecontacts into outlook, outlook add-on, address capture, capture name,addresses, import contacts to Outlook, transfer contact details into outlook Dhan Microsoft Outlook Program Addins 0 24th Apr 2010 10:03 AM
Programattically setting Outlook signatures (Outlook 2003 and Outlook 2000) Chris Microsoft Outlook 2 17th Jul 2007 04:37 PM
Outlook 2002: "...Outlook Requires Outlook Express 4.01 or greater =?Utf-8?B?Q2hyaXMgRw==?= Microsoft Outlook Discussion 4 8th Dec 2004 08:49 PM
Automatically Print Emails with Outlook 2000, Outlook 2002, or Outlook Express Clayton Microsoft Outlook 2 13th Dec 2003 04:28 PM
Outlook 2002 (Office XP Suite) Outlook hangs, task manger "Outlook Not Respondin Mike Microsoft Outlook 0 10th Jul 2003 02:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:27 PM.