Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: Retrieve Domain name of the user Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
hamipers
Newbie
Newbie


Joined: 06 March 2008
Location: United States
Online Status: Offline
Posts: 11
Posted: 15 March 2008 at 12:19am | IP Logged Quote hamipers

Hello,
I was checking the Login method of Imap class. I need to pass in username without the domain segment, so instead of myusername@mydomain.com, it will be myusername only. After logging in, I need to know the user's domain name. Is there any way to acquire that?
Back to Top View hamipers's Profile Search for other posts by hamipers
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 15 March 2008 at 4:53am | IP Logged Quote Andrew

The Login method allows specifying username without a domain name, so there should be no problems. With regard to getting domain of the current logged user, IMAP protocol doesn't provide such feature, the only way is to retrieve some message headers and check To field and analyze recipient's address, but this is not a reliable solution.

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

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