PC Review


Reply
Thread Tools Rate Thread

create confirmation email in vba when email received

 
 
Guest
Posts: n/a
 
      22nd Jan 2004
I would like to send a message confirmation for every
email that my mail box (set up an admin box) receives. I
tried to set this up as an autoreply, but then it only
gets sent once and the mailbox has to be open.

Is there a way to have vba code run every time (at the
point in time when) an email is received? That way I can
create and send the email through vba code.

Any ideas? Thanks.

 
Reply With Quote
 
 
 
 
Eric Legault [Outlook MVP]
Guest
Posts: n/a
 
      23rd Jan 2004
For started, Outlook will always have to be running anyway to fire the VBA
code.

The ItemAdd event for a MAPIFolder object's Items collection (such as your
Inbox) fires every time a new item is put into the folder, including when
new e-mails are sent to your delivery location (the Inbox again). Get the
MAPIFolder object for your Inbox, and set a global Items variable declared
WithEvents from the MAPIFolder.Items property. You can get the ItemAdd
event from that.

--
Eric Legault, B.A., MCP, MCSD, MVP - Outlook
Job: http://www.imaginets.com
Blog: http://blogs.officezealot.com/legault


<(E-Mail Removed)> wrote in message
news:2c0e01c3e128$877885b0$(E-Mail Removed)...
> I would like to send a message confirmation for every
> email that my mail box (set up an admin box) receives. I
> tried to set this up as an autoreply, but then it only
> gets sent once and the mailbox has to be open.
>
> Is there a way to have vba code run every time (at the
> point in time when) an email is received? That way I can
> create and send the email through vba code.
>
> Any ideas? Thanks.
>



 
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
Confirmation of received email? =?Utf-8?B?Q3luYmFn?= Microsoft Access Queries 1 2nd Jul 2005 04:20 PM
How do I create a contact from a received email =?Utf-8?B?S2lt?= Microsoft Outlook Discussion 3 10th Mar 2005 07:55 AM
How to create Distribution List from received email. =?Utf-8?B?U2hhbWltIFByb2RoYW4=?= Microsoft Outlook Discussion 0 13th Jan 2005 04:47 PM
Send message received confirmation every email kda Microsoft Outlook 1 23rd Jan 2004 07:40 PM
Create new contact from received email oll Microsoft Outlook Contacts 3 28th Dec 2003 10:03 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:38 AM.