MAPIsession.Logon in ASP

if i want to logon to a MAPI.Session via ASP

HOW do I Logon successfully?

CDO.Logon "profileName", "password"
doesn't work...

without bluring the question i end it here :)
LVL 1
wailqillAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Neo_mvpsConnect With a Mentor Commented:
CDO's logon method allows you to create a dymanic profile.  The call looks like:

objSession.Logon "","", False, True, 0, True, strProfile

strProfile is a string variable that is comprised of the name of the Exchange server, a LF, and the mailbox.

The big thing that makes this work however is to make sure that you force the user to authenticate because IUSR_<computername> generally doesn't have any rights to Exchange mailboxes.

Additional information can be found at:
http://www.cdolive.com/asp2.htm
http://www.cdolive.com/asp7.htm

Hope this helps,
/Neo
0
 
rjcpjcCommented:
You have to create the session first.  

Set objCDO = Application.CreateObject("MAPI.Session")

Then

objCDO.Logon...
0
 
wailqillAuthor Commented:
i left that out as obvious. :)

but what i realized was that there had to be an IUSR MAPI-profile.
anyone got any ideas on how to create this?
0
 
wailqillAuthor Commented:
thanks alot, that's exactly what i needed :)
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.