Block incoming emails in Outlook [Resolved]

Posted by Unnis under C# on 3/10/2010 | Views : 1300 | Status : [Member] | Replies : 7
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




Responses

Posted by: Vuyiswamb on: 3/12/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down

Resolved
Exactly yes

Thank you for posting at Dotnetfunda
[Administrator]

Unnis, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 3/11/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
No you cant

You can handle NewMail() or NewMailEx() or ItemAdd() functions for the Inbox and do something there , but you cannot prevent new mails from coming in
at all.

Thank you for posting at Dotnetfunda
[Administrator]

Unnis, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Unnis on: 3/11/2010 [Member] Starter

Up
0
Down
Hi Vuyiswamb,
thank you for the reply.
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

Unnis, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 3/11/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
No , What you can do is to put your Outlook offline for some minutes and put it back again

Thank you for posting at Dotnetfunda
[Administrator]

Unnis, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Unnis on: 3/12/2010 [Member] Starter

Up
0
Down
you mean using functions: LogOff() and LogOn()?

Unnis, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Unnis on: 3/12/2010 [Member] Starter

Up
0
Down
ok thank you Vuyiswamb. thanks for your help :-)

Unnis, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 3/12/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Thank you for Posting at DotnetFunda

Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

Unnis, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response