Possible virus warning when sending a message through MAPI automation

G

Guest

Hi,

I'm using MAPI automation object to send an e-mail from a C++ application,
with a code similar to this:

_ApplicationPtr pApp("Outlook.Application");
pNewMail = pApp->CreateItem(olMailItem);
pNewMail->Subject = "subject";
pNewMail->Body = "body"
pNewMail->To = "address"
pNewMail->Send();

When the program tryes to send the message, Outlook issues a warning of a
possible virus trying to send a message, and stops until the user confirm
this popup with the "yes" option. This happens on both Outlook 2002 and
2003.
Does anyone know how to avoid this ?
I tryed to use CDO instead of MAPI and works, but in this way I miss to put
the message in the SentItems folder, while this is usefull for diagnostics.

Thanks to all.

Massimo.
 
P

Peter Huang [MSFT]

Hi

To disable the warning, we still need to do some customization in Exchange
Server side.
If you still have any concern, please feel free to post here.

How to Customize the Security Settings
Scenario 1
You may need to grant specific Microsoft Exchange Server users access to a
particular file type that is commonly sent within the company.
Scenario 2
You may need to give other programs full access to Outlook's e-mail
addresses or e-mail message Send functionality. An example is a computer
that automatically sends out e-mail messages to specific users on a
particular date or after business hours. To avoid having someone present to
manually allow the program access, you can modify Outlook to allow another
program to gain access to e-mail addresses accessed and automatically send
e-mail messages.

To configure Outlook 2002 for the previously mentioned scenarios, an
Exchange Server environment is necessary. An Outlook E-mail Security
Administrator Package has been developed to allow you to customize the
security settings for various Exchange Server users. The Outlook E-mail
Security Administrator Package includes a document (Readme.doc) that
explains how to customize and apply custom Outlook security settings. You
can install the Outlook E-mail Security Administrator Package (Admpack.exe)
from one of the following locations: ? From the Microsoft Office Resource
Kit Web site. To obtain the Microsoft Office Resource Kit, visit the
following Microsoft Web site:
http://www.microsoft.com/office/ork
? From the Microsoft Office XP Enterprise CD located in the following
folder:

\Ork\Files\Pfiles\Orktools\Ork10\Tools\Admpack

Note The previously available administrator package included a form with
the build number 1802.4. The new Outlook 2002 Security Administrator
Package and Outlook 2003 Security Administrator Package includes a form
with the build number 1802.5. If you are using Outlook 2002 or Microsoft
Office Outlook 2003 with a Microsoft Exchange 2000 Server mailbox or a
Microsoft Exchange Server 2003 mailbox, you must use the new form (1802.5)
in the security settings public folder. If you use the old form (1802.4),
the administrator-controlled settings do not replicate to the Outlook 2002
and Outlook 2003 clients.

Note The Outlook Security Settings folder must be available to client
computers at all times. Programs that rely on custom security settings may
revert to the default security settings if the Outlook Security Settings
folder becomes unavailable. For more information, see the Readme.doc file
included with the Administrator Package.
Scenario 3
You may need to grant a non-Exchange Server user access to a particular
file type that is commonly sent or received.

You can configure a Microsoft Windows Registry setting to allow a user
access to specific restricted file types. For additional information, click
the following article number to view the article in the Microsoft Knowledge
Base:
290497 You cannot open attachments


Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

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