Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ Outlook VC++
I am getting Microsoft Outlook warning message when programmatically accesses Outlook Address Book/Send E-mail"
How can i disable this warning message?
BOOL CEmail::ResolveName(LHANDLE hMAPISession, LPTSTR& address, LPTSTR name)
{
BOOL ok;
//resolve name
lpMapiRecipDesc newrecip;
ULONG err = (*lpfnMAPIResolveName)(hMAPISession, 0, name, 0, 0, &newrecip);
}
 
when initializing MAPI i am calling
 
if ((lpfnMAPIResolveName= (LPMAPIRESOLVENAME)GetProcAddress(m_hMapiLibrary,SZ_MAPIRESOLVENAME)) == NULL)
        return GetLastError();
Posted 11-Jul-12 2:06am
Edited 12-Aug-12 21:18pm
v4
Comments
ryanb31 at 11-Jul-12 15:18pm
   
Microsoft has a document on MSDN about this. You'll have to look it up but I believe you can get around it with properly signed code.
Joan Murt at 13-Jul-12 11:46am
   
Disabling a safety is not the best option if you don't control the environment at 100%: there are plenty of computers whose owners won't like to unprotect them. Apart of that a good implementation today means less hassle tomorrow (less maintenance...).
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I believe you have to be running as a fully trusted application before this prompt will go away. If you want it to go away permanently then you can disable the registry key, as per the directions here:
 
http://sogeeky.blogspot.com/2007/04/how-to-disable-outlook-security-warning.html[^]
 
It looks like Add-in Express does something similar (disable Outlook security) on a temporary basis. Maybe you can learn from what they do:
 
http://www.add-in-express.com/outlook-security/index.php[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Just think that probably the customers won't like to get their PC's unprotected, if that is the case then you should think on changing the way you handle the e-mail in your application.
 
Take a look here: http://www.naughter.com/freenetwork.html[^] Where PJ Naughter made a great job in e-mail handling.
 
Take a look at the first link CPJNSMTPConnection and if you read carefully the instructions you will be able to get it working without much hassle it is easy after all.
 
Good luck! Rose | [Rose]
  Permalink  
Comments
Volynsky Alex at 13-Aug-12 18:17pm
   
good!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 304
1 Sergey Alexandrovich Kryukov 255
2 Shweta N Mishra 216
3 Maciej Los 210
4 PIEBALDconsult 184
0 OriginalGriff 7,660
1 Sergey Alexandrovich Kryukov 7,072
2 DamithSL 5,586
3 Manas Bhardwaj 4,946
4 Maciej Los 4,665


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 13 Oct 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100