Author |
|
GuyB Newbie
Joined: 02 October 2008 Location: United Kingdom
Online Status: Offline Posts: 8
|
Posted: 09 October 2008 at 4:24am | IP Logged
|
|
|
Hello I'd like to run mailbee within an intranet. I already have the users login name and password, is it possible to automate the login so the user doesn't have to enter their login details again.
In another post you suggested it was possible to "submit post data containing login/password to the login form handler" but I cannot see any mention of how to do this on the site or in the docs.
A pointer in the right direction would be most welcome.
Many thanks.
|
Back to Top |
|
|
GuyB Newbie
Joined: 02 October 2008 Location: United Kingdom
Online Status: Offline Posts: 8
|
Posted: 09 October 2008 at 4:26am | IP Logged
|
|
|
ps: Ideally I'd like to pass the userdetails as url params when launching webmail.
Thanks - G
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 09 October 2008 at 5:47am | IP Logged
|
|
|
WebMail Lite ASP.NET supports special integration API which would allow you to achieve this.
Best regards,
Andrew
|
Back to Top |
|
|
GuyB Newbie
Joined: 02 October 2008 Location: United Kingdom
Online Status: Offline Posts: 8
|
Posted: 09 October 2008 at 9:18am | IP Logged
|
|
|
Hi Andrew
I found the "How to integrate webmail into another system" in the help pages. This works very well on my development system but causes an error on the live system. Specifically I have written an asp.net page which logs into webmail and then launches the UI. When I run this on the live system it raises the following exeption:
Unable to cast object of type 'WebMailPro.WebmailSettings' to type 'WebMailLite.WebmailSettings'
Can you think what might be causing this?
AHHHHHHH !!!!!!! Just thought of something.
The live system has webmailpro the dev system has webmail lite. Surely the call to UserLoginByEmail is the same for both products ?
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 10 October 2008 at 3:18am | IP Logged
|
|
|
You should use the appropriate namespace:
for Pro version:
for Lite version:
Best regards,
Andrew
|
Back to Top |
|
|
GuyB Newbie
Joined: 02 October 2008 Location: United Kingdom
Online Status: Offline Posts: 8
|
Posted: 10 October 2008 at 6:53am | IP Logged
|
|
|
Hi Andrew
Doh! what an obvious mistake <blush> having changed that include statement, now everything works as expected.
Although the call to UserLoginByEmail does also need the path to the data folder as another property. Tho that only became obvious once this error had been fixed.
Many thanks for your help. We now have very slick single click access to email, once the users have logged into their intranet.
Guy
|
Back to Top |
|
|