email intercept

User avatar
sal21
PlatinumLounger
Posts: 4374
Joined: 26 Apr 2010, 17:36

email intercept

Post by sal21 »

it is possible to intercept an e-mail before it goes into outlook?

I thnk it is possible listening to port 25, or not?

Or exists an applet or a vb script?

Tks.

User avatar
HansV
Administrator
Posts: 78643
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: email intercept

Post by HansV »

Take a look at Application.ItemSend Event (Outlook).
Occurs whenever an Microsoft Outlook item is sent, either by the user through an Inspector (before the inspector is closed, but after the user clicks the Send button) or when the Send method for an Outlook item, such as MailItem, is used in a program.
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4374
Joined: 26 Apr 2010, 17:36

Re: email intercept

Post by sal21 »

HansV wrote:Take a look at Application.ItemSend Event (Outlook).
Occurs whenever an Microsoft Outlook item is sent, either by the user through an Inspector (before the inspector is closed, but after the user clicks the Send button) or when the Send method for an Outlook item, such as MailItem, is used in a program.
hummmmm...

But i need to intercept the email when i recive it, not to sent...

User avatar
HansV
Administrator
Posts: 78643
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: email intercept

Post by HansV »

In that case, look at
Application.NewMail Event (Outlook)
Application.NewMailEx Event (Outlook)
These occur when a message is received.
Best wishes,
Hans