exchange-server

Cant emails through exchange: An existing connection was forcibly closed by the remote host

[亡魂溺海] 提交于 2019-12-03 21:13:49
I just noticed that some of the email operations in my code have been failing and am trying to fix it up, however I keep getting the following error: System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) at System.Net.Sockets.NetworkStream.Read(Byte[]

Android mail search using Exchange Activesync

谁说胖子不能爱 提交于 2019-12-03 21:07:30
Is there is way to search mail in Exchange server using active sync protocol in android, i tried in many ways but it works for Global adress lookup but not for mails. can anybody please give the solution it realy helps me. please suggest the any link for clease understanding of Exchange mailbox store. Thanks Yes it is possible. Here is an example from the ActiveSync Protocol specification. You will first need to get the list of folders using the FolderSync command, and then use the ServerId returned to search the folders. More information in my comment here . P.S. Might be useful to add an

How do I query effective permissions on an Active Directory Object?

独自空忆成欢 提交于 2019-12-03 12:37:22
I'm trying to programmatically determine whether the current user has certain permissions on a given Active Directory object (specifically in this case, I'm trying to determine whether the user has the "Send As" permission for another Exchange user or distribution list object). I already figured out how to access the ntSecurityDescriptor attribute using ADSI: I can enumerate the ACEs in the IADsSecurityDescriptor 's DiscretionaryACL property. But: How do I determine from that data whether the "Send As"-permission is explicitly allowed or denied for a trustee? How do I discover this when the

Using EWS Managed API to create appointments for other users?

不想你离开。 提交于 2019-12-03 12:36:49
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 say I wanted to actually create an appointment for another user (not add that user as an attendee to

Accessing Microsoft Exchange server from Ruby

纵饮孤独 提交于 2019-12-03 12:30:12
I need to sync MS Exchange's contacts with my Ruby on Rails application. Which is the best way? Would you recommend any existing gems for it? One place to start would be the Exchange Developer Center , where Microsoft links to downloads of the different SDKs, documentation, etc. Understandably, most of the docs and examples will be using Microsoft's .NET Framework and languages. If you want to connect with Exchange 2007 or 2010, you'll probably find it easiest to use some form of Exchange Web Services (EWS) which you may be able to connect to using Ruby web services frameworks like SOAP4R ,

Cannot load Exchange powershell snap-in: The type initializer for 'Microsoft.Exchange.Data.Directory.Globals' threw an exception

╄→尐↘猪︶ㄣ 提交于 2019-12-03 11:23:14
I have the following code that creates a PowerShell runspace with the Exchange 2010 snap in loaded. Dim runspaceConfig = RunspaceConfiguration.Create() Dim snapInException As PSSnapInException = Nothing runspaceConfig.AddPSSnapIn("Microsoft.Exchange.Management.PowerShell.E2010", snapInException) Dim runspace = RunspaceFactory.CreateRunspace(runspaceConfig) runspace.Open() Since installing Visual Studio 2012 I started getting the following error when executing the line that adds the snap-in to the runspace config. System.Management.Automation.Runspaces.PSSnapInException occurred HResult=

Exchange Server 2007 Web Services PHP Class

二次信任 提交于 2019-12-03 06:25:43
问题 Does anyone know of an open source PHP class (preferably BSD or MIT license) that will interface with the MS Exchange Server 2007 Web Services via. SOAP? I am looking for a higher level class that has functionality for sending messages via. the web service. 回答1: I had this same problem, so I started building something, here: https://github.com/rileydutton/Exchange-Web-Services-for-PHP It doesn't do much yet (basically just lets you get a list of email messages from the server, and send email)

How to get email body, receipt, sender and CC info using EWS?

房东的猫 提交于 2019-12-03 04:52:11
问题 Can anyone tell me how to get an email body, receipt, sender, CC info using Exchange Web Service API? I only know how to get subject. ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010); service.Credentials = new NetworkCredential("user", "password", "domain"); service.Url = new Uri("https://208.243.49.20/ews/exchange.asmx"); ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => true; FindItemsResults<Item>

Diffie-Hellman key exchange in Java

守給你的承諾、 提交于 2019-12-02 23:51:17
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.security.KeyPair; import java.security.KeyPairGenerator; import java.security.SecureRandom; import

Exchange Web Services API : get mail attachments

五迷三道 提交于 2019-12-02 21:16:24
I am using the EWS API 1.2 to access mailboxes on our Exchange Server. This just works fine but there is one thing I cannot achieve : get mail attachments. Im wrote the following lines : class Program { public static void Main(string[] args) { try { ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2); service.Credentials = new WebCredentials("login","password"); service.AutodiscoverUrl("mail@domaine.fr"); ItemView view = new ItemView(10); FindItemsResults<Item> findResults = service.FindItems(WellKnownFolderName.Inbox, new ItemView(10)); if (findResults != null &&