Wrox Programmer Forums
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 18th, 2003, 10:33 AM
Authorized User
 
Join Date: Jun 2003
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default Outlook 2000 Automation

Hi,

I am creating an application that scans the outlook 2000 inbox for mails with a specific subject. It then needs to create a reply mail to be automatically sent out.

The problem I am getting is that Outlook creates a popup when the program tries to send the mail, asking the user if they want to allow access to Outlook.

Does anybody know how to programatically turn this off. The idea is the program will run without user intervention.

Thanks in advance

Byron
 
Old July 4th, 2003, 10:31 AM
Authorized User
 
Join Date: Jun 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Some steps that you might want to look at initially are:
a) Your setup of Outlook - do you have multiple profiles? Do you need to log into Outlook when starting it (Password etc)...
b) Though if you are using Outlook VBA, try not to invoke navigators but if you keep your approach to creating just a MailItem and then invoking MailItem.Send... When is this popup precisely occuring? Is it as you create the mail or when you invoke Send?

To give much more advice perhaps you could give some more details as to how you are creating this reply mail and your setup of Outlook etc.

Hope that this help inspire you onto a successful solution.

Regards,

Simon
 
Old July 6th, 2003, 02:12 PM
Authorized User
 
Join Date: Jul 2003
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alex_read
Default

Sorry Byron, there is no way of turning this message off via code!

 
Old July 9th, 2003, 11:19 AM
Authorized User
 
Join Date: Jun 2003
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Thanks for your help. I got around it in the end by using a third party mail component to send the mails.

Thanks again..
 
Old July 10th, 2003, 01:10 AM
Authorized User
 
Join Date: May 2003
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you want then try CDO (Collaborative data Object) for mailing

Quote:
quote:Originally posted by byron
 Hi,

Thanks for your help. I got around it in the end by using a third party mail component to send the mails.

Thanks again..
Deepesh Jain
VB,VBA & .NET Specialist
Wiley Support Team





Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook Automation in Access arielalevy Access VBA 1 June 27th, 2006 07:00 PM
Outlook Automation Error www2004 Pro VB 6 4 August 12th, 2004 09:09 AM
Outlook 2000 errors byron Pro VB.NET 2002/2003 3 December 1st, 2003 10:17 AM
Outlook 2000 errors byron VB.NET 2002/2003 Basics 0 August 28th, 2003 09:08 AM
Access 2000 and Outlook vaheh Access VBA 1 August 13th, 2003 03:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.