Archive mail from mailbox after reply in VBA

  • Thread starter Thread starter hagen
  • Start date Start date
H

hagen

First off all sory for my bad Englisch,
i'm from the Netherlands!

I'm looking for a code, maby you can help me.
My case.

In my company is a department who work with 10 peolple, they hav
access
to a puplic mail box called "AMS-WvR-Infoteam". We recive #800
questions
per year in this mailbox.
All 10 people can send mail from that mailbox to the custommers. Now

want to Archive all thos replys.

What i need is a VBA Code for Outlook 2000 (whizard can not help me).
The code must have this:
If sombody replys from AMS-WvR-Infoteam, then
Fill BCC with "AMS-WvR-ARCHIEF" and
Fill From with "AMS-WvR-INFOTEAM" and
Fill cathogorie with "Infoteam"

Can you help me with this?!?!?

Thank you!
 
Have you started to create any of this code yet? I can't write it all for
you, but what you want to do is fairly straightforward. The tricky part is
changing the From address; see
http://www.slipstick.com/mail1/sendaccount.htm for more details. Otherwise,
use this example to guide you:

Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(olMailItem)
Set myRecipient = myItem.Recipients.Add ("AMS-WvR-ARCHIEF")
myRecipient.Type = olBCC
myItem.Categories = "Infoteam"
myItem.Send
 
Back
Top