| Title: | Windows NT | 
| Notice: | See note 15.0 for HCL location | 
| Moderator: | TARKIN::LIN .com::FOLEY | 
| Created: | Thu Oct 31 1991 | 
| Last Modified: | Fri Jun 06 1997 | 
| Last Successful Update: | Fri Jun 06 1997 | 
| Number of topics: | 6086 | 
| Total number of notes: | 31449 | 
Hi,
 I have a WEB application one of the options is to send mail from a server to 
 users. I'm using Windows NT V4.0, ASP (Active Server Pages), 
 IIS (Internet Information System), VisualScript and I created an OLE DLL file 
 using Visual Basic V4.0  and the system controls MAPISession, MAPIMessage to
 send the mail. The problem the I'm having is the went the application wants to
 do a signon it gets a error = 3 or  Login has failed.
 
   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Here are the lines of code use to sign in: 
 
    'Set the session username and password to nulls
    Form1.MapiSess.UserName = ""
    Form1.MapiSess.Password = ""
    'Open up a MAPI session
    Form1.MapiSess.Action = mapSignOn
   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  Any help or pointers on how to do a MAPI session sign on in the web even if
  you use different tools will be appreciated 
                                             Thanks!
                                                     Chico
 Note: The code works nice on a application no using the WEB.
    
| T.R | Title | User | Personal Name | Date | Lines | 
|---|---|---|---|---|---|
| 5719.1 | User Context Maybe ??? Just a guess | MSE1::mse-tatenger.mse.tay.dec.com::Chenis | Kenneth Chenis | Fri Feb 21 1997 13:53 | 11 | 
| I would look at the context you are running the server under. My guess (and honestly, that is all it is) is the logon is failing when run under the context of the server, but works when run under the context of a user - i.e. what account is trying to establish the MAPI session when it is run from an active server page? Hope this helps. Kenneth Chenis Multivendor Systems Engineering | |||||