Solved

MAPIsession.Logon in ASP

Posted on 2001-06-20
4
374 Views
Last Modified: 2007-10-18
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
Comment
Question by:wailqill
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 9

Expert Comment

by:rjcpjc
ID: 6211144
You have to create the session first.  

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

Then

objCDO.Logon...
0
 
LVL 1

Author Comment

by:wailqill
ID: 6211504
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
 
LVL 16

Accepted Solution

by:
Neo_mvps earned 100 total points
ID: 6233953
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
 
LVL 1

Author Comment

by:wailqill
ID: 6239026
thanks alot, that's exactly what i needed :)
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this step by step procedure, you will come to know the details of creating an Outlook meeting in 2007, 2010, 2013 & 2016.
Changing a few Outlook Options can help keep you organized!
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question