473,324 Members | 2,531 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Automated Logon w/Outlook 2003


I have a program that I'm converting from Outlook 2000 to Outlook 2003.

It basically opens Outlook and iterates through a series of items in a
public folder.

I was able to run this as a scheduled task overnight.

But now, it seems to want to have me be logged in already or it will not
log into Outlook.

Also, in 2003, there is this little dialog that says "a program is
trying to access outlook, do you want to give it access for" and then
there's a drop down with 1 minute, 3minutes, 10 minutes.

How can I configure my Outlook 2003 client so my interop program can
login and run without any dialog boxes or without my having to have the
client open at the time it runs?
May 5 '06 #1
5 3018
See http://www.outlookcode.com/d/sec.htm for your options with regard to the "object model guard" security in Outlook 2000 SP2 and later versions.

Have you set up Outlook 2003 to always start with the same profile? Are you performing a Namespace.Logon in your code?

In general, Outlook is not suitable for unattended automation like your scenario.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"John A. Bailo" <ja*****@texeme.com> wrote in message news:Q5********************@speakeasy.net...

I have a program that I'm converting from Outlook 2000 to Outlook 2003.

It basically opens Outlook and iterates through a series of items in a
public folder.

I was able to run this as a scheduled task overnight.

But now, it seems to want to have me be logged in already or it will not
log into Outlook.

Also, in 2003, there is this little dialog that says "a program is
trying to access outlook, do you want to give it access for" and then
there's a drop down with 1 minute, 3minutes, 10 minutes.

How can I configure my Outlook 2003 client so my interop program can
login and run without any dialog boxes or without my having to have the
client open at the time it runs?

May 6 '06 #2
Sue Mosher [MVP-Outlook] wrote:
See http://www.outlookcode.com/d/sec.htm for your options with regard to the "object model guard" security in Outlook 2000 SP2 and later versions.

Have you set up Outlook 2003 to always start with the same profile? Are you performing a Namespace.Logon in your code?

In general, Outlook is not suitable for unattended automation like your scenario.


I found a solution:

http://www.mapilab.com/outlook/security/

This free component lets me manually assign permissions to third party
software for accessing Outlook. It worked great for my c# program.

I totally disagree with your and Microsoft's opinion on automating via
the client. This is entirely in line with the entire .NET smart client
scenario. The Office clients provide a rich OM for manipulating the
server back end. I find that it's much easier to design, build, debug
around them than fighting direct connections to the server back end.
May 10 '06 #3
> I totally disagree with your and Microsoft's opinion on automating via the client.

How do you know what my opinion is? Did you read my mind? I don't recall stating any opinions.
The Office clients provide a rich OM for manipulating the server back end.
For Word and Excel 2003 using VSTO 2005, that's definitely true. There are great server applications to be built with those tools.

Outlook is totally different story. The article at http://support.microsoft.com/kb/237913/ explains some of the pitfalls, including the issue that only one instance of Outlook can be running at a time. So, whose Outlook data will the server access and what will happen to requests to access other data while that process is running?
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"John A. Bailo" <ja*****@texeme.com> wrote in message news:44************@texeme.com... Sue Mosher [MVP-Outlook] wrote:
See http://www.outlookcode.com/d/sec.htm for your options with regard to the "object model guard" security in Outlook 2000 SP2 and later versions.

Have you set up Outlook 2003 to always start with the same profile? Are you performing a Namespace.Logon in your code?

In general, Outlook is not suitable for unattended automation like your scenario.


I found a solution:

http://www.mapilab.com/outlook/security/

This free component lets me manually assign permissions to third party
software for accessing Outlook. It worked great for my c# program.

I totally disagree with your and Microsoft's opinion on automating via
the client. This is entirely in line with the entire .NET smart client
scenario. The Office clients provide a rich OM for manipulating the
server back end. I find that it's much easier to design, build, debug
around them than fighting direct connections to the server back end.

May 17 '06 #4
Sue Mosher [MVP-Outlook] wrote:
including the issue that only one instance of Outlook can be running at a time. So, whose


Are you saying you can run more than one instance of Excel or Word at a
time?
May 17 '06 #5
No, that's not what I said.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"John A. Bailo" <ja*****@texeme.com> wrote in message news:44**************@texeme.com...
Sue Mosher [MVP-Outlook] wrote:
including the issue that only one instance of Outlook can be running at a time. So, whose


Are you saying you can run more than one instance of Excel or Word at a
time?

May 17 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Adam Kinney | last post by:
I have an ASP application that logs into Exchange server to send email. The code looks like this: Set objSession = CreateObject("MAPI.Session") objSession.Logon "profileName" strMsg = ".."...
4
by: MLH | last post by:
I would like to configure OutLook Express so that it does not attempt to resend eMails in the Outbox folder whenever new sends are made From Access. The ISP's server rejects some eMail address...
1
by: Manfred | last post by:
I want to access via CDO outlook. Therfore i have to logon. In VB.NEt I make it like: Dim objSession As MAPI.Session If objSession Is Nothing Then objSession = CreateObject("MAPI.Session")...
2
by: W Akthar | last post by:
Hi All, I have written a windows service which runs a small windows application. This windows application queries a sql server database and depending on these results, sets appointments in...
4
by: Max | last post by:
Hi, I would like to have a button and a combo box with options to select various versions of Microsoft Outlook: 2002, 2003. The user selects the email client and clicks the button. The only...
9
by: George McCullen | last post by:
I have an Outlook 2003 using Exchange Server 2003 Public Contacts Folder containing 20,000 Contacts. I am writing a VB .Net 2003 program that loops through all the contacts in a "for each oCt in...
0
by: bonita | last post by:
I come across the error "CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed." After I move my asp.net code from the development platform (XP professional) to the production web...
6
by: Manuel | last post by:
Hi, Using the PIA "Microsoft Outlook 11 Object Library". I've noticed that the Logon method of the NameSpace Object is simply ignored. My Outlook 2003 is full updated. For example if I...
2
by: rodentboy | last post by:
I am trying to write a logon script in windows 2000 group policy that will archive the users .pst files to a share on the network. We already have a general.bat logon script that maps to the users...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.