Word mailmerge and Outlook security

C

cha_urwu

Hi,

I use Word MailMerge to send merged documents as emails. The emails are
sent through Outlook and for every email sent, I got a dialog window
with a message like this:

A program is trying to automatically 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 have to click the "Yes" button for every email. Is there a way to
tell Word to use a different email client other than Outlook? Or is
there a way to automatically dismiss or hide those dialog windows?

I saw some articles that suggest using Extended MAPI for the problem.
But that doesn't seem to help me because the emails are sent behind the
scenes by Word's MailMerge functionality. The code I write doesn't
directly use Outlook's object model, Extended MAPI or Simple MAPI. My
code looks like this:

Word.MailMerge mailMerge = ...;
mailMerge.Destination = Word.WdMailMergeDestination.wdSendToEmail;
mailMerge.Execute(ref oTrue);

Thanks,
Gary
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top