Solved

MAPIsession.Logon in ASP

Posted on 2001-06-20
4
373 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
When you have clients or friends from around the world, it becomes a challenge to arrange a meeting or effectively manage your time. This is where Outlook's capability to show 2 time zones in one calendar comes in handy.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

738 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