0
Answer

Send mail confirmation dialog

Hello friends

I used Outlook interop to send a mail like this

Application OutlookApp = new ApplicationClass();
MailItem OutlookMail=(MailItem)OutlookApp.CreateItem(OlItemType.olMailItem);
OutlookMail.To = "[email protected]";
OutlookMail.Subject = "TEST";
OutlookMail.Body = "This is a test message";
OutlookMail.Send();

It is working fine. But before sending a mail, Outlook which is running in the background pops a dialog saying

A program is trying to send e-mail on your behalf.
Do you want to allow this?
If this is unexpected, it may be a virus and you should choose "No".

I don't want this dialog to appear. How to disable it?

Regards
Bharani