exchange-server

JavaMail with MS Exchange: No authentication mechansims supported by both server and client

我是研究僧i 提交于 2019-12-01 03:25:56
I've been trying for days now to send mail from Grails application and unsuccessfully. I'm using: grails 1.3.7 mail 1.0 plugin spring-security-core 1.2.6 plugin tomcat 7.0.23 Specifficaly I'm trying to send mail with Exchange from application deployed on Tomcat server trought port 25 with no authentication, no SSL. I've tried to send message with telnet from the VMWare virtual machine on which the app is deployed and it got trough. This is my class for sending mails: public boolean sendMessage(String to, String msgSubject, String msgText) { String host = "mail.mydomain.com"; String username =

Getting Exchange Appointments by ICalUid?

∥☆過路亽.° 提交于 2019-12-01 03:25:25
So I'm creating Exchange (2007) Appointments with a given ICalUid: var app = new Appointment(svc); app.ICalUid = id; app.Subject = "Test Appointment"; app.Recurrence = new Recurrence.DailyPattern(DateTime.Now, 3); app.RequiredAttendees.Add("mstum@example.com"); app.AllowNewTimeProposal = false; app.Body = new MessageBody(BodyType.HTML, "This is a <b>Test!</b>"); app.Save(); Later on, I would like to update that appointment, at which point I need to find it through the ICalUid. However, there seems to be no way to do that? I can use Appointment.Bind only against the Exchange ID, which I don't

Should I use GUID or DefaultExtendedPropertySet.PublicStrings while constructing ExtendedPropertyDefinition?

怎甘沉沦 提交于 2019-12-01 02:51:21
问题 I am developing C# .NET Framework 4.5 Windows Form application using EWS Managed API 1.2 with Exchange Server 2007 which performs some sort of syncing of mails. Now that I am dealing with Extended Properties, I want to be clear some things: Q1. What is the purpose of DefaultExtendedPropertySet class? MSDN says "Defines the default sets of extended properties." Is it just to group the extended properties? If yes, why is the grouping there at first place? Do we have any Ews API method which can

Exchange Webservice Managed API - Find items by extended properties

蹲街弑〆低调 提交于 2019-12-01 02:49:38
问题 I have tried to use extended properties on appointments with EWS, but I can not seem to find the appointments again. The set property part is equal to the one shown in this question: How to Update an Appointment from Exchange Web Service Managed API 2.0 in ASP.NET When I try to retrieve the appointment, I have followed these examples: http://msdn.microsoft.com/en-us/uc14trainingcourse_5l_topic3#_Toc254008129 http://msdn.microsoft.com/en-us/library/exchange/dd633697(v=exchg.80).aspx But I

Configure exchange email account via Android API

杀马特。学长 韩版系。学妹 提交于 2019-12-01 02:38:07
I'd like to write an application that, given a username and password, will (among other things) configure an exchange email email account on the device. Is it possible to do via the Android API? If so, via what class? In the versions prior to 3.0 there is a way to configure exchange email by passing in the UserName and Password as extras. ComponentName cname = new ComponentName("com.android.email", "com.android.email.activity.setup.AccountSetupBasics"); Intent intent = new Intent("android.intent.action.MAIN"); intent.putExtra("com.android.email.AccountSetupBasics.username", emailAddress);

How to to print mail body and subject from unread answer?

大兔子大兔子 提交于 2019-12-01 01:15:48
I want to get the mail subject and body of only unread mails of my inbox. I want to read one unread mail at a time and mark it as read afterwards. I need the subject , from address and mail body . The below code shows gives me the mail IDs of all unread mails. require_once ('../mail3/php-ews-master/ExchangeWebServices.php'); require_once ('../mail3/php-ews-master/EWS_Exception.php'); require_once ('../mail3/php-ews-master/EWSType.php'); require_once ('../mail3/php-ews-master/NTLMSoapClient.php'); function __autoload($class_name) { // Start from the base path and determine the location from the

Connect to Microsoft Exchange PowerShell within C#

大城市里の小女人 提交于 2019-12-01 00:21:08
问题 I'm trying to connect to remote powershell from C# .NET WinForms app. My goal is to create my own version of Microsoft PowerShell ISE. So i need a way to execute PowerShell Scripts from my app on Remote Machines. I've created couple of methods and tested it on local machine from my app. If I don't use WSManConnectionInfo and use using (Runspace remoteRunspace = RunspaceFactory.CreateRunspace()) i can execute scripts locally as if it was true powershell (little scripts, usage of variables,

ConversationId property vs ConversationIndex property in Exchange Web Services managed API

…衆ロ難τιáo~ 提交于 2019-11-30 23:28:14
EWS Managed API have two properties: ConversaionId and ConversationIndex What is the difference between them? I guess ConversationId is the the ConversationIndex of the first mail in the conversation which is essentially of 22 bytes, while ConversationIndex is the index of that particular reply in the conversation thread, essentially of 22 bytes + multiples of 5 bytes for each reply in the conversation. Is it like that? Also ConversationId is accessible only with Exchange Server 2010 onwards. So cant we access ConversationId in the Exchange Server 2007? Correct, you can't access ConversationId

Get user's Exchange server and email address in .NET

巧了我就是萌 提交于 2019-11-30 22:42:30
H​i. I would like to know the address of my user's Exchange server (assuming she's in a typical Windows office network). This is in a C# application. I already have the user's email address, I found it at System.DirectoryServices.AccountManagement.UserPrincipal.Current.EmailAddress , after referencing System.DirectoryServices.AccountManagement kjosh I use this for my Exchange client application. Install Exchange Web Services Managed API Change your C# project's Properties/Application changed the target framework to '.NET Framework 4' not '.NET 4 Client Profile' Reference C:\Program Files

Relay access denied on sending mail, Other domain outside of network

拥有回忆 提交于 2019-11-30 22:25:10
问题 Sending mail results in error "Relay access denied". It throws "Relay access denied", whenever I tried to send mail to "other_domain" from "outside_network". It works just fine for "myown_domain" from "outside/inside_network" and to "other_domain" from "inside_network". Here is the list of telnet commands. mail from:myself@mydomain.com - 250 2.1.0 Ok rcpt to:yourself@mydomain.com - 250 2.1.5 Ok rcpt to:yourself@yourdomain.com - 554 5.7.1 <yourself@yourdomain.com>: Relay access denied. rcpt to