exchange-server

Using EWS Managed API to create appointments for other users?

点点圈 提交于 2019-12-20 18:42:18
问题 In EWS Managed API is it easy to create an appointment for a specific user: ExchangeService service = new ExchangeService(); service.Credentials = new NetworkCredentials ( "administrator", "password", "domain" ); service.AutodiscoverUrl(emailAddress); Appointment appointment = new Appointment(service); appointment.Subject = "Testing"; appointment.Start = DateTime.Now; appointment.End = appointment.Start.AddHours(1); appointment.Save(); This will create a appointment for the administrator. But

Using EWS Managed API to create appointments for other users?

孤者浪人 提交于 2019-12-20 18:41:47
问题 In EWS Managed API is it easy to create an appointment for a specific user: ExchangeService service = new ExchangeService(); service.Credentials = new NetworkCredentials ( "administrator", "password", "domain" ); service.AutodiscoverUrl(emailAddress); Appointment appointment = new Appointment(service); appointment.Subject = "Testing"; appointment.Start = DateTime.Now; appointment.End = appointment.Start.AddHours(1); appointment.Save(); This will create a appointment for the administrator. But

How to do paging with Exchange Web Services CalendarView

廉价感情. 提交于 2019-12-20 17:59:09
问题 If I do this: _calendar = (CalendarFolder)Folder.Bind(_service, WellKnownFolderName.Calendar); var findResults = _calendar.FindAppointments( new CalendarView(startDate.Date, endDate.Date) ); I sometimes get an exception that too many items were found. "You have exceeded the maximum number of objects that can be returned for the find operation. Use paging to reduce the result size and try your request again." CalendarView supports a constructor that will let me specify MaxItemsReturned , but I

Diffie-Hellman key exchange in Java

安稳与你 提交于 2019-12-20 10:39:59
问题 I am working on a personal project in Java which involves sending sensitive data over an insecure channel. I need to know how to implement Diffie Hellman Key Exchange (DHKE) in java using its libraries. I know all the cryptographic theory about it so no need to go into details, I just need a very basic implementation so I cand have 2 programs share a secret key. I got the example from java2s.com, but it is not complete: import java.math.BigInteger; import java.security.KeyFactory; import java

Get current user's email address in .NET

孤街醉人 提交于 2019-12-20 09:57:25
问题 I would like to know the email address of the user (assuming she's in a typical Windows office network). This is in a C# application. Perhaps something to the effect of CurrentUser.EmailAddress; 回答1: If you're behind a Windows domain, you could always grab their email address out of Active Directory. Here's an example: http://lozanotek.com/blog/articles/149.aspx 回答2: Reference System.DirectoryServices.AccountManagement , then using System.DirectoryServices.AccountManagement; UserPrincipal

MFMailComposeViewController Attaches Signature as .txt file

删除回忆录丶 提交于 2019-12-20 07:47:28
问题 I'm sending a pdf through MFMailComposeViewController. The sender's signature is seen as an attachment when viewed in Outlook, but not the iOS native mail app.Everything else works as expected. What is the reason the signature is showing an attachment? @IBAction func sendSpecSheetWithEmailButton(_ sender: subclassedUIButton) { buttonURL = sender.urlString! specName = sender.specSheetName! let fileURL = URL(string: buttonURL) if fileURL == URL(string: "https://www.example.com") {

Outlook macro runs through 250 iterations before failing with error

∥☆過路亽.° 提交于 2019-12-20 06:17:39
问题 Description: I have an Outlook macro that loops through selected emails in a folder and writes down some info to a .csv file. It works perfectly up until 250 before failing. Here is some of the code: Open strSaveAsFilename For Append As #1 CountVar = 0 For Each objItem In Application.ActiveExplorer.Selection DoEvents If objItem.VotingResponse <> "" Then CountVar = CountVar + 1 Debug.Print " " & CountVar & ". " & objItem.SenderName Print #1, & objItem.SenderName & "," & objItem.VotingResponse

Using JavaMail to connect to IMAP getting “A1 NO LOGIN failed” exception

南楼画角 提交于 2019-12-20 04:16:21
问题 Following is the detail of the server I'm trying to connect mailbox_password = KexDa3P7hEtru mailbox_domain = mail.lenderlive.com mailbox_host= corp.lcl mailbox_username = SecondaryQC@lenderlive.com server_type = imap port = 143 I'm using the following java code to connect to exchange: String domain = "mail.lenderlive.com"; String user= "SecondaryQC@lenderlive.com"; String password= "KexDa3P7hEtru"; String serverType = "imap"; Store store = null; Properties properties = System.getProperties()

Ruby/Rails ActionMailer not working with NTLM

China☆狼群 提交于 2019-12-20 02:54:57
问题 I am setting up a mailer in my project and I am having difficulties sending mail through Exchange SMTP server. I have installed the gem ruby-ntlm but I am still getting unrecognized authentication type . This is my code environment.rb # Load the Rails application. require File.expand_path('../application', __FILE__) require 'ntlm/smtp' # Initialize the Rails application. Rails.application.initialize! notifier.rb class Notifier < ActionMailer::Base default :from => "stephen.edwards@foostix.lu"

Android How to add/configure Exchange setting programmatically?

对着背影说爱祢 提交于 2019-12-20 02:13:55
问题 Is it me or I can't find any example of how to add/configure Microsoft Exchange programatically? It seems like AccountManager :: addAccount (String accountType, String authTokenType, String[] requiredFeatures, Bundle addAccountOptions, Activity activity, AccountManagerCallback<Bundle> callback, Handler handler) should do the work. However, I can't figure out how for Microsoft Exchange account. Could you point me to a simple working example code? Thank you. 回答1: Seems like it can't be done by