Anyone familiar with MAPI ??

hi all
from my virtual printer driver, i tried to create a functionality that
enables to send the printed output(which came as an image file) from my
printer driver, as an attachment through email… ( a kind of functionality
which Winzip provides … Zip and Email Archive…)

During that, when i was able to create a MAPI session i tried to send an
attachment, on which my MAPI function (SendMail() ) crashed, with getlast
error reporting file not found ( though file was on the specified path)

Now the problem is i am not able to log on to MAPI from the printer driver
code, it gives an error “MAPI_E_LOGIN_FAILURE” and the problem persists as
such! i tried the same code on a fresh machine it works there… but somehow
MAPI on my machine is not working… i tried giving different existing
profile names but its not working …
There is no change even after restarting the machine.
Has anyone any clue about it…

the operating system is Windows NT 4.0

thanx in advance!
best regards
vaibhav



Daring ideas are like chessmen moved forward. They may be beaten, but they
may start a winning game.

The glory of the Self is beheld by a few, and a few describe it; a few
listen, but many without understanding. The Self of all beings, living
within the body, is eternal and cannot be harmed. Therefore, do not grieve.

> During that, when i was able to create a MAPI session i tried to send an

Is MAPI not outdated?
To send SMTP mail, use CDO-NTS COM objects shipped with IIS.

Max