views:

912

answers:

3

I send email through Outlook using VB.Net 2005; this is working fine. At the same time, however, I receive the following message:

A program is trying to automatically send Email on your behalf. Do you want to allow this ? if this is enexpected, it may be virus and you should choose no.

Is there any way to avoid this?

+3  A: 

You need some library like Redemption to circumvent this popup. It's the default built-in security behaviour of Outlook (since version 2002 I think).

MicSim
+4  A: 

This is "by design". It's done to prevent virus's from doing things like going through contact lists and automatically sending emails on the user behalf. Having the dialog prevents a virus from silently becoming a spam bot.

JaredPar
+4  A: 

I know this isn't answering your direct question, but is there a reason you can use the System.Net.Mail.MailMessage class and send using that? Or is this because you want the e-mail to show up in their sent items?

Hugoware
This is the same approach I had to take to prevent needing user interaction from an automated email signaling when certain processes failed etc.
Jason Down
From the comment above, if a copy is required in an inbox, the current user can be added to the recipient list.
Hooloovoo