[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 384
  • Last Modified:

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 :)
0
wailqill
Asked:
wailqill
  • 2
1 Solution
 
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
 
Neo_mvpsCommented:
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
 
wailqillAuthor Commented:
thanks alot, that's exactly what i needed :)
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now