MAPI fails as Scheduled Task

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"

jlukinsAsked:
Who is Participating?
 
ToolManConnect With a Mentor Commented:
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
 
DabasCommented:
Hi jlukins,
What are you running as a scheduled task?
The resulting executable of a Visual Basic 6 program?

Dabas
0
 
DabasCommented:
Suggest points ToolMan
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.