Solved

MAPI fails as Scheduled Task

Posted on 2003-11-26
5
403 Views
Last Modified: 2008-03-17
I have a very small email application that sends email using MAPI (Outlook Express)
It works ok interactively. The mail gets sent without any problem.

When I try to run it as a Scheduled Task I get the following error
"Unspecified Failure has occurred"
the error occurs at the 1st statement "MAPISession1.SignOn"

0
Comment
Question by:jlukins
  • 2
5 Comments
 
LVL 27

Expert Comment

by:Dabas
Comment Utility
Hi jlukins,
What are you running as a scheduled task?
The resulting executable of a Visual Basic 6 program?

Dabas
0
 
LVL 3

Accepted Solution

by:
ToolMan earned 125 total points
Comment Utility
hi,
i has a similar kind of problem, my porblem was cause due the profile.
The "wrong" user profile loaded in the scheduled task.
you might want to add a username/password to your task, and that might do the trick.

hope it helps
regards
0
 
LVL 27

Expert Comment

by:Dabas
Comment Utility
Suggest points ToolMan
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now