exchange-server

UseDefaultCredentials with Exchange Web Services

删除回忆录丶 提交于 2019-12-05 21:14:59
I'm a pretty new programmer. One of the things I've been tasked with at work is getting our custom tools to create draft emails and drop them into the draft email folder of the user running the tool. We presently use Exchange Server 2010 (but are in the process of migrating over to Exchange Online). This link talks about a UseDefaultCredentials but I can't seem to work out how to implement it. I created an ExchangeService object called service and managed to interact with our Exchange server using this for credentials: service.Credentials = new WebCredentials("my login name", "my password"); I

Can we connect to Exchange 2016 using EWS Managed API?

删除回忆录丶 提交于 2019-12-05 21:09:49
问题 I am using EWS Managed API 2.2 and it does not show the Exchange version 2016 in its enumeration. I can see the versions upto Exchange 2013. So how can I connect to Exchange Server 2016? Is the API, yet to be updated from Microsoft or do I need to use any other API's to connect to Exchange 2016 ? 回答1: It will connect just fine. You don't need to set the version to match the server, you set the version to indicate the lowest level of service you support. 来源: https://stackoverflow.com/questions

How to receive push notifications from my Gmail account?

大城市里の小女人 提交于 2019-12-05 17:51:38
问题 I'd like to write an application which monitors a mailbox (ideally a Gmail mailbox). In brief, my question is how do I listen to incoming emails? I could always keep pulling emails but I am afraid that this doesn't scale very well. How does iOS do it with Gmail? I think they are using Exchange protocol, but I am not sure. Does anybody have an idea on how to do it? Is there a solution which already does something similar? I just need a hook. Thanks! 回答1: The most universal "API" for monitoring

Use Javamail for accessing Microsoft Exchange mailboxes (IMAP, MS Exchange)

空扰寡人 提交于 2019-12-05 15:41:33
I need to connect to a Microsoft Exchange Server through IMAPS JavaMail. First, I got the: A1 NO AUTHENTICATE failed. javax.mail.AuthenticationFailedException: AUTHENTICATE failed. exception in my debugger. Then, I disabled some authentication protocols: imapProps.setProperty("mail.imaps.auth.plain.disable", "true"); imapProps.setProperty("mail.imaps.auth.ntlm.disable", "true"); imapProps.setProperty("mail.imaps.auth.gssapi.disable", "true"); This is the new exception I'm getting (I've attached the whole log): DEBUG: setDebug: JavaMail version 1.4.4 DEBUG: getProvider() returning javax.mail

SmtpClient.Send randomly causes SmtpException 4.7.0 timeout waiting for client input

有些话、适合烂在心里 提交于 2019-12-05 14:36:28
I can't seem to find the cause for this problem. Sometimes I get SmtpException "4.7.0 timeout waiting for client input" being thrown on using the following c# code for .net-4.0 : using System; using System.Net.Mail; namespace SendMail { class Program { static void Main(string[] args) { for (int i = 0; i < 100; i++) { string html = "<h1>TEST</h1>"; using (MailMessage mail = new MailMessage("sender@domain.com", "receiver@domain.com")) { mail.Subject = "Test"; mail.IsBodyHtml = true; mail.Body = html; using (SmtpClient client = new SmtpClient("<internal ip address>")) { client

Match EWS Conversation* to Outlook Add-in Conversation*

懵懂的女人 提交于 2019-12-05 12:48:29
I wrote an add-in for Outlook years ago that adds entries to a database based on the Item's ConversationIndex / ConversationId properties. This works great and remains uniform across all clients interacting with the messages (e.g. "Bob" can see that "Mary" already processed this message because an entry with the ConversationIndex already exists). I'm now trying to move this piece to a service (and connect via the EWS API) but I'm not having good luck matching these properties with the values coming from Outlook. For example: The Outlook Add-In will give me the following values for a specific

EWS API - Create calendar and share with reviewer permissions

假装没事ソ 提交于 2019-12-05 12:10:55
I'm having some trouble on creating and share a calendar with review permissions using Exchange Webservice API .NET . At the moment this is my code: Folder addCalendar = new Folder(service); addCalendar.DisplayName = name; addCalendar.FolderClass = "IPF.Appointment"; var perm = new FolderPermission(new UserId("reviewer@test.com"), FolderPermissionLevel.Reviewer); addCalendar.Permissions.Add(perm); addCalendar.Save(WellKnownFolderName.MsgFolderRoot); The calendar is created, in my account I can see the calendar and the user 'reviewer@test.com' has the correct permissions. The problem is: The

Where are Exchange Web Services: ExtendedPropertyDefinition IDs defined?

主宰稳场 提交于 2019-12-05 10:16:28
In researching how to use Exchange Web Services, I see examples like this Dim PR_DELETED_ON As New ExtendedPropertyDefinition(26255, MapiPropertyType.SystemTime) Dim PR_SEARCH_KEY As New ExtendedPropertyDefinition(12299, MapiPropertyType.Binary) That first parameter is an int that represents the property ID. Can anyone give me a pointer to where those ID numbers are defined? Those are called Microsoft Exchange Property Tags and can be found here Have a look at Outlook Spy . It can tell you those numbers. There is a screen shot on that site that shows how to get them. 来源: https://stackoverflow

What is the simplest way to run a script when an email is received?

狂风中的少年 提交于 2019-12-05 09:08:40
I'd like to run a script, typically in PHP or MySQL since it involves changing a Mysql db table when an email arrives at my exchange server (2010). The server holds IIS7. So in short: Email->Exchange server->changes a table in MySQL DB Notes: Not looking for a script that connects to the e-mail via POP/imap I'm looking for a kind of trigger that occurs in the server Webservices or Transport Agent seem complicated If you can supply an easy example I'll accept it. If you have a Sink example that runs on Exchange 2010 please support it with careful explanation and examples/links. (step by step if

Python Exchange ActiveSync Library

主宰稳场 提交于 2019-12-05 08:44:37
Is anyone familiar with an Exchange ActiveSync library or open source client for python? I've done preliminary searching with little to no success. I've seen some examples for C#, but I figured I'd ask around here before my attempt to port anything over. In case you're curious. This would be an extension of an already existing linux based IMAP / POP3 client. Moving to Windows / C# this late in the game isn't really an option. This is a Python ActiveSync client, built on Twisted: https://code.google.com/p/py-eas-client/ On Debian 9: apt-get install mercurial python-twisted hg clone https:/