| Author |  | 
      
        | imjackk Newbie
 
  
  
 Joined: 05 August 2013
 Location: United Kingdom
 Online Status: Offline
 Posts: 5
 | 
          Is it possible to get user data, and their associated email account settings, from an alternative data source?
           | Posted: 05 August 2013 at 2:17am | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          Not sure if I understand the idea, but if you have an existing database of users, you can log user in programmatically using the information you have. It's still required for user to have an email account accessible over IMAP.
           | Posted: 05 August 2013 at 2:42am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | imjackk Newbie
 
  
  
 Joined: 05 August 2013
 Location: United Kingdom
 Online Status: Offline
 Posts: 5
 | 
          I definitely didn't explain what I meant very well.
           | Posted: 05 August 2013 at 2:45am | IP Logged |   |  
           | 
 |  
 We have an existing database of users (not MySQL), and we also have an existing database of email accounts. Is it possible to use this database to login and load account settings, rather than also maintaining a duplicate of this data?
 
 I've had a brief look at the APIs, and it may be possible to create email accounts after logging in by pulling them from our database, and adding them using the API. However, it would be nice if the user could also change their account settings using your interface, and they get saved to our database.
 
 Does this make more sense? :)
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          Interacting with other web applications is not something natively available in WebMail Pro, and while it's possible to create accounts and change their data programmatically from some application of yours, it doesn't work the other way around.
           | Posted: 05 August 2013 at 2:50am | IP Logged |   |  
           | 
 |  
 If you're interested in getting this kind of customization performed by our developers, that's possible of course. Or, you can request a consulting service, while your people will be doing the actual integration. Either way, feel free to contact the Professional Services team.
 
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | imjackk Newbie
 
  
  
 Joined: 05 August 2013
 Location: United Kingdom
 Online Status: Offline
 Posts: 5
 | 
          Thanks for your help. I think I'll stick with the basic method for now, and consider customization later.
           | Posted: 05 August 2013 at 5:00am | IP Logged |   |  
           | 
 |  
 I've been looking at the API, and it looks like in version 7 the LoginoAccountEx method has been removed? Could you confirm that functionality is no longer available, or has it just been moved?
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          
           | Posted: 05 August 2013 at 5:09am | IP Logged |   |  
           | 
 |  
| Quote: 
 
    
    | 
      
       | Could you confirm that functionality is no longer available, or has it just been moved? |  |  |  
 According to the developers, that method isn't available in current version.
 
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | imjackk Newbie
 
  
  
 Joined: 05 August 2013
 Location: United Kingdom
 Online Status: Offline
 Posts: 5
 | 
          That's a shame... It's pretty useful! Is there any specific reason it was removed? Is there any way I can achieve the same thing without paying for additional development?
           | Posted: 05 August 2013 at 5:11am | IP Logged |   |  
           | 
 |  
 That's pretty much going to be the decider to whether or not we purchase a license.
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          There's no specific reason behind that. Version 7 was a rewrite from scratch so only the most critical features were implemented. We've made it possible to log in programmatically using the simplest way, other methods are just not there yet. We might bring this one back in next 7.1 version which is going to be released in a month or two, but not sooner than that.
           | Posted: 05 August 2013 at 5:16am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | imjackk Newbie
 
  
  
 Joined: 05 August 2013
 Location: United Kingdom
 Online Status: Offline
 Posts: 5
 | 
          That's fair enough. Cheers, Igor.
           | Posted: 05 August 2013 at 5:17am | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          I've just got an update on this: though LoginToAccountEx method is not available indeed, it's possible to create user programmatically with custom fields supplied, e.g. incoming mail host, port number, etc. The sample for this is found here, and it would allow for the same thing LoginToAccountEx did but it won't log user in, it just creates an account.
           | Posted: 06 August 2013 at 12:52am | IP Logged |   |  
           | 
 |  
 Note that the code assumes there's no matching domain, various hardly predictable issues are possible otherwise.
 
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  |