Joshi.Utils.Imap.Imap.Login C# (CSharp) Method

Login() public method

Login to specified Imap host and default port (143)
public Login ( string sHost, string sUserId, string sPassword ) : void
sHost string Imap Server name
sUserId string User's login id
sPassword string User's password
return void
        public void Login(string sHost, string sUserId, string sPassword)
        {
            try
            {
                Login (sHost, IMAP_DEFAULT_PORT, sUserId, sPassword);
            }
            catch(Exception e)
            {
                throw e;
            }
        }

Same methods

Imap::Login ( string sHost, ushort nPort, string sUserId, string sPassword, bool sslEnabled = false ) : void

Usage Example

Exemplo n.º 1
0
 public MyImapWrapper(string imapHost, ushort imapPort, string imapUser, string imapPassword)
 {
     _imapContext = new Imap();
     try
     {
         _imapContext.Login(imapHost, imapPort, imapUser, imapPassword, true);
     }
     catch (Exception)
     {
         //TODO: Implement login exception
         throw;
     }
 }
All Usage Examples Of Joshi.Utils.Imap.Imap::Login