コード例 #1
0
        public void initializeEmailService()
        {
            service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
            string emailUsername = appSettingsRepo.getEmailUserName();
            string emailPassword = appSettingsRepo.getEmailPassword();
            string emailDomain   = appSettingsRepo.getEmailDomain();
            string emailUri      = appSettingsRepo.getEmailUri();

            service.Credentials  = new WebCredentials(emailUsername, emailPassword, emailDomain);
            service.Url          = new Uri(emailUri);
            service.TraceEnabled = true;
        }