Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: Automating user login Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
GuyB
Newbie
Newbie
Avatar

Joined: 02 October 2008
Location: United Kingdom
Online Status: Offline
Posts: 8
Posted: 09 October 2008 at 4:24am | IP Logged Quote GuyB

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 View GuyB's Profile Search for other posts by GuyB
 
GuyB
Newbie
Newbie
Avatar

Joined: 02 October 2008
Location: United Kingdom
Online Status: Offline
Posts: 8
Posted: 09 October 2008 at 4:26am | IP Logged Quote GuyB

ps: Ideally I'd like to pass the userdetails as url params when launching webmail.

Thanks - G
Back to Top View GuyB's Profile Search for other posts by GuyB
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 09 October 2008 at 5:47am | IP Logged Quote Andrew

WebMail Lite ASP.NET supports special integration API which would allow you to achieve this.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
GuyB
Newbie
Newbie
Avatar

Joined: 02 October 2008
Location: United Kingdom
Online Status: Offline
Posts: 8
Posted: 09 October 2008 at 9:18am | IP Logged Quote GuyB

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 View GuyB's Profile Search for other posts by GuyB
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 10 October 2008 at 3:18am | IP Logged Quote Andrew

You should use the appropriate namespace:

for Pro version:
Code:
using WebMailPro;


for Lite version:
Code:
using WebMailLite;


Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
GuyB
Newbie
Newbie
Avatar

Joined: 02 October 2008
Location: United Kingdom
Online Status: Offline
Posts: 8
Posted: 10 October 2008 at 6:53am | IP Logged Quote GuyB

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 View GuyB's Profile Search for other posts by GuyB
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide