summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorTino Rachui <tra@openoffice.org>2001-10-15 09:47:27 +0000
committerTino Rachui <tra@openoffice.org>2001-10-15 09:47:27 +0000
commit557c9f3ca912833f20c24f507f42eb48b675467a (patch)
treecddbc6b45bb8aa56192e39a7df743dba2c9da0f6 /shell
parentc0c7d730ec42c72c9701b822e9470765915a2982 (diff)
#93077#setting flag MAPI_LOGON_UI else an error occurs if someone uses Outlook (not Outlook Express) installed as Exchange and Mail Client because in this case a working profile has to be specified
Diffstat (limited to 'shell')
-rw-r--r--shell/source/win32/simplemail/smplmailsuppl.cxx16
1 files changed, 9 insertions, 7 deletions
diff --git a/shell/source/win32/simplemail/smplmailsuppl.cxx b/shell/source/win32/simplemail/smplmailsuppl.cxx
index 62cee02c2b82..516212a92b09 100644
--- a/shell/source/win32/simplemail/smplmailsuppl.cxx
+++ b/shell/source/win32/simplemail/smplmailsuppl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: smplmailsuppl.cxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: tra $ $Date: 2001-05-14 08:08:49 $
+ * last change: $Author: tra $ $Date: 2001-10-15 10:47:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -140,7 +140,12 @@ Reference< XSimpleMailClient > SAL_CALL CSmplMailSuppl::querySimpleMailClient(
// is available
// if so create and return a new instance of a
// simple mail client
- FLAGS flFlag =MAPI_NEW_SESSION;// | MAPI_LOGON_UI;
+ // #93007# we have to set the flag MAPI_NEW_SESSION,
+ // because in the case Outlook xxx (not Outlook Express!)
+ // is installed as Exchange and Mail Client a Profile
+ // selection dialog must appear because we specify no
+ // profile name, so the user has to specify a profile
+ FLAGS flFlag = MAPI_NEW_SESSION | MAPI_LOGON_UI;
LHANDLE hSession;
ULONG ulRet = m_pSimpleMapi->MAPILogon(
0, NULL, NULL, flFlag, 0L, &hSession );
@@ -150,10 +155,7 @@ Reference< XSimpleMailClient > SAL_CALL CSmplMailSuppl::querySimpleMailClient(
if ( SUCCESS_SUCCESS == ulRet )
{
xSmplMailClient =
- Reference< XSimpleMailClient >( new CSmplMailClient( ) );
-
- // logoff again
- m_pSimpleMapi->MAPILogoff( hSession, 0, 0, 0 );
+ Reference< XSimpleMailClient >( new CSmplMailClient( hSession ) );
}
return xSmplMailClient;