Solved

MAPIsession.Logon in ASP

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Find out what you should include to make the best professional email signature for your organization.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
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…

770 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