PC Review


Reply
Thread Tools Rate Thread

Block incoming emails in Outlook

 
 
Unni
Guest
Posts: n/a
 
      10th Mar 2010
Hi,
I need to block incoming emails (basically SendAndReceive operation) in
Outlook for a specified duration(say 1 minute).
I need to do this programmatically in C#/C++.

Please help me..


Thanks in advance
Unni
 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      10th Mar 2010
Block in what way? You can handle NewMail() or NewMailEx() or ItemAdd() on
the Inbox and do something, but you can't prevent new mails from coming in
at all. You can handle item.Send() or Application.ItemSend() and cancel
send's but you can't prevent them from taking place at all.

You can also handle events for SyncObjects and cancel any that are
user-started, but you don't get anything when an automatic send/receive is
started. Of course you can handle these events only if you are supporting an
Outlook version that exposes them, which you never mention.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Unni" <(E-Mail Removed)> wrote in message
news:42976178-9377-4DEF-BF27-(E-Mail Removed)...
> Hi,
> I need to block incoming emails (basically SendAndReceive operation) in
> Outlook for a specified duration(say 1 minute).
> I need to do this programmatically in C#/C++.
>
> Please help me..
>
>
> Thanks in advance
> Unni


 
Reply With Quote
 
Unni
Guest
Posts: n/a
 
      11th Mar 2010
Hi Ken Slovak,

thank you for the reply.
I need to do this in outlook version above 2003.
I need to stop automatic fetching of incoming mails for some minutes.

In Oultook tools menu -> Send/Receive->Send/Receive Settings -> Then
Defining the settings, we can uncheck an option to 'Schedule an automatic
send/receive every xx minutes.'

Is it possible to uncheck this option programmatically. This would be also
helpful

Thanks
Unni

"Ken Slovak - [MVP - Outlook]" wrote:

> Block in what way? You can handle NewMail() or NewMailEx() or ItemAdd() on
> the Inbox and do something, but you can't prevent new mails from coming in
> at all. You can handle item.Send() or Application.ItemSend() and cancel
> send's but you can't prevent them from taking place at all.
>
> You can also handle events for SyncObjects and cancel any that are
> user-started, but you don't get anything when an automatic send/receive is
> started. Of course you can handle these events only if you are supporting an
> Outlook version that exposes them, which you never mention.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Professional Programming Outlook 2007.
> Reminder Manager, Extended Reminders, Attachment Options.
> http://www.slovaktech.com/products.htm
>
>
> "Unni" <(E-Mail Removed)> wrote in message
> news:42976178-9377-4DEF-BF27-(E-Mail Removed)...
> > Hi,
> > I need to block incoming emails (basically SendAndReceive operation) in
> > Outlook for a specified duration(say 1 minute).
> > I need to do this programmatically in C#/C++.
> >
> > Please help me..
> >
> >
> > Thanks in advance
> > Unni

>
> .
>

 
Reply With Quote
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      11th Mar 2010
You can change that setting in the registry, but Outlook will only read it
at startup. It won't read it again, after startup it keeps that along with
many other settings in an in-memory cache. I don't believe you will be able
to do what you want.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Unni" <(E-Mail Removed)> wrote in message
news:F4A33D45-BA91-49EF-A853-(E-Mail Removed)...
> Hi Ken Slovak,
>
> thank you for the reply.
> I need to do this in outlook version above 2003.
> I need to stop automatic fetching of incoming mails for some minutes.
>
> In Oultook tools menu -> Send/Receive->Send/Receive Settings -> Then
> Defining the settings, we can uncheck an option to 'Schedule an automatic
> send/receive every xx minutes.'
>
> Is it possible to uncheck this option programmatically. This would be also
> helpful
>
> Thanks
> Unni


 
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
Need to BLOCK reminders attached to incoming emails decoopman Microsoft Outlook Discussion 1 25th Nov 2008 02:07 AM
is there a way to block ALL incoming emails to an outlook account =?Utf-8?B?YXNoY29zdGVsbG8=?= Microsoft Outlook Discussion 1 16th Aug 2005 10:31 AM
How can I block embedded photos from appearing in incoming emails. =?Utf-8?B?YnVja2xlcnNoYXJk?= Microsoft Outlook Installation 8 3rd Jan 2005 02:45 PM
Possible to block incoming emails from certain IP addresses? Atreyu Anti-Virus 6 6th Oct 2004 05:39 AM
How do I block incoming emails from automatically resending? andy c Microsoft Outlook 0 22nd Aug 2003 08:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:11 AM.