Example #1
0
 public SvrMailbox(string sServer, string sUser, string sPassword, string sPort, string sWorkingDir,
                   CMClientType clientType, string SmtpSsl, string PopSsl, string smtpSTA, string regId,
                   string Mailbox = "", string Mailelaborate = "", string MailNonElaborate = "")
 {
     initaliazeProvider();
     if (provider == MailProvider.MailsystemNet)
     {
         mail = new BusinessLogic.Interoperabilità.SvrPosta_MSNet(sServer, sUser, sPassword, sPort, sWorkingDir, clientType, SmtpSsl, PopSsl, smtpSTA);
     }
     if (provider == MailProvider.Chilkat)
     {
         if (clientType == CMClientType.POP)
         {
             mail = new BusinessLogic.Interoperabilità.ChilkatEmailComponent(sServer, sUser, sPassword, sPort, sWorkingDir, clientType, SmtpSsl, PopSsl, smtpSTA, regId);
         }
         else if (clientType == CMClientType.IMAP)
         {
             mail = new BusinessLogic.Interoperabilità.ChilkatEmailComponent(sServer, sUser, sPassword, sPort, sWorkingDir, clientType, SmtpSsl, PopSsl, smtpSTA, Mailbox, Mailelaborate, MailNonElaborate, regId);
         }
     }
 }