Solved

MAPI fails as Scheduled Task

Posted on 2003-11-26
5
409 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 27

Expert Comment

by:Dabas
ID: 9829155
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
ID: 9830596
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
ID: 10162328
Suggest points ToolMan
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month9 days, 10 hours left to enroll

624 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