Quantcast
Channel: Exchange Server Development forum
Viewing all 7132 articles
Browse latest View live

[E2013][EWSMA][Outlook2013][C#][Windows7] EWSMA sometimes returns empty/corrupt contact's note

$
0
0

Hi,

Technology used: EWS Managed Api 15.00.0516.014, Exchange 2013 On Premise, Outlook 2013, .Net 4.5/C#

We have an application that synchronize contacts between Exchange and our application database.
Often, when we load a contact from Exchange, we get an empty note for the contact, although we can see that the contact has a note in Outlook. Plus this doesn't occur all the time, this can work for a contact and later it doesn't work anymore for the same contact.
Usually in our test case, we just modify one other field like name or phone number, we don't modify the note itself.

The application reads both the HTML and Text version of the note, in a separate call using the following code:

var bodyPropertySet = new PropertySet() { ContactSchema.Body, ContactSchema.TextBody };
bodyPropertySet.RequestedBodyType = BodyType.HTML;

var response = this.service.BindToItems(new ItemId[] { exchangeContact.Id },  bodyPropertySet);
var contact = (Contact)response[0].Item;
var htmlNote = contact.Body.Text
var textNote = contact.TextBody.Text

A "corrupt" HTML note looks always the same:

<html><head><meta http-equiv=""Content-Type"" content=""text/html; charset=utf-8""><meta name=""Generator"" content=""Microsoft Exchange Server""><!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style></head><body><font size=""2""><span style=""font-size:10pt;""><div class=""PlainText"">&nbsp;</div></span></font></body></html>

Note that this occurs only in one environment. On another environment that uses the same version Exchange (2013 on premise), but a less loaded server (a test server), we can't replicate.

What we suspect but with no guarantee:
- a problem with Outlook cache where Outlook would send to Exchange a temporary version of the contact with the note empty
- a separate process in Exchange that would convert the note from RTF to HTML. Our application would get a version of the contact when the conversion is not finished
- a problem with the antivirus and the cache file of Outlook...

Has anyone encountered such issue before? Any idea/pointer where to look at?

Thanks for your help,
Alexandre


[FilterType (Sync) - Filter by incomplete tasks] causes problems on further sync operations

$
0
0

Once the flag for "FilterType (Sync) - Filter by incomplete tasks" is appended to our request, we only get the updates for tasks one time.

Following requests return always "no changes", even though account has new tasks or changes the current ones.

Restoring the flag to its initial and default value "No filter- synchronise all items" normalises the sync requests, updates are then received again.

Exchange 2007: how to allow unauth sender through smtp to relay

$
0
0

Hello,

how can I set the exchange 2007 in order to allow an unauthenticated source (another computer connecting with smtp port 25 with not registered email) to send an email at an address not in the organization?

For example the sender aaa@bbb.com wants send an email to ddd@sub.eee.lan where the local domain is eee.lan (exchange server is zzz.eee.lan)

Thanks

EWS > How to fetch a particular meeting item?

$
0
0

Hello,

I am new to using EWS and want to know - how to access a particular meeting item through EWS?

I will try & explain the things further.

I want to prepare a VSTO Addin for Outlook and would like to save a UserPropoerty in the Meeting item. Next, using EWS, I would like to access that particular Meeting item & read the UserProperty or fetch a meeting item having a specific value in the UserProperty.

Can the above be achieved using EWS?

Please guide.

Thanks,


-Vinay Pugalia
If a post answers your question, please click "Mark As Answer" on that post or"Vote as Helpful".
Web : Inkey Solutions
Blog : My Blog
Email : Vinay Pugalia

Set appointment/task RTF/HTML body to display correctly in Outlook web and desktop

$
0
0

Hi,

I'm using EWS API 2.0. I'm trying to set an EWS appointment/task body with formatting. I have HTML or RTF that contains fully formatted text with embedded images. I tried 2 methods:

1. Setting appointment/task Body = new MessageBody(BodyType.HTML, htmlText). The images do not come over when I view this item in Outlook.

2. I tried setting the RTF of the appointment/task. The item looks good in Outlook web, but not desktop. Here's my code:

            

I'm using DevEx RichEdit control to obtain the RTF text - 

byte[] rtfValue;
            using (RichEditControl richEditControl = new RichEditControl())
            {
                richEditControl.HtmlText = htmlText;
                rtfValue=Encoding.ASCII.GetBytes(richEditControl.RtfText);
            }

        ExtendedPropertyDefinition rtfPropertyDefinition = new ExtendedPropertyDefinition(0x1009,MapiPropertyType.Binary);
        _exchangeAppointment.SetExtendedProperty(rtfPropertyDefinition, rtfValue);

How do I convert to RTF in the correct compressed format for EWS? (is that the issue here?)

And How can I correctly set the format?


Thanks.



Error: Exchange Web Services are not currently available

$
0
0

Hello,

I am trying to send an email message using EWS Managed API. I am impersonating another user. 

Here is my request:

<t:TimeZoneContext><t:TimeZoneDefinition Id="Eastern Standard Time" /></t:TimeZoneContext><t:ExchangeImpersonation><t:ConnectingSID><t:PrimarySmtpAddress>ex2007.user1@mycom.com</t:PrimarySmtpAddress></t:ConnectingSID></t:ExchangeImpersonation></soap:Header><soap:Body><m:CreateItem MessageDisposition="SendOnly"><m:Items><t:Message><t:Subject>Test Message</t:Subject><t:Body BodyType="HTML">Test Message.</t:Body><t:ToRecipients><t:Mailbox><t:EmailAddress>me.me@mycom.com</t:EmailAddress></t:Mailbox></t:ToRecipients></t:Message></m:Items></m:CreateItem></soap:Body></soap:Envelope>

This works for sometime and then I start getting an error "Exchange Web Services are not currently available for this request because none of the Client Access Servers in the destination site could process the request."

If I try again after some time it works again and then fails again after a few successful tries. Here is the trace when failed: 

</Trace><Trace Tag="EwsResponseHttpHeaders" Tid="10" Time="2016-04-15 19:13:09Z">
HTTP/1.1 500 Internal Server Error
Transfer-Encoding: chunked
request-id: 1d7b41f2-bb0a-4a34-96fa-16e5f479vk6c
X-CalculatedBETarget: mail01.mycom.com
X-Frame-Options: SAMEORIGIN,SAMEORIGIN
X-DiagInfo: MAIL01
X-BEServer: MAIL01
Cache-Control: private
Content-Type: text/xml; charset=utf-8
Set-Cookie: exchangecookie=56450757804a4c8fb3cbfaae28e56340; expires=Sat, 15-Apr-2017 19:13:09 GMT; path=/; HttpOnly,X-BackEndCookie=S-1-5-21-746137067-1580818891-842925246-52641=u56Lnp2ejJqBx83KnZrMx5nSx5vMytLLy8rJ0sfJzZ3SyM7Nm5zMmZvOmZrHgYHNz87J0s/K0s7Kq87Gxc7Mxc/G; expires=Sun, 15-May-2016 19:13:09 GMT; path=/EWS; secure; HttpOnly
Server: Microsoft-IIS/8.5
X-AspNet-Version: 4.0.30319
Persistent-Auth: true
X-Powered-By: ASP.NET
X-FEServer: MAIL02
Date: Fri, 15 Apr 2016 19:13:09 GMT</Trace><Trace Tag="EwsResponse" Tid="10" Time="2016-04-15 19:13:09Z" Version="15.00.084
7.030"><?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode xmlns:a="http://schemas.microsoft.com/exchange/services/2006/types">a:ErrorNoRespondingCASInDestinationSite</faultcode><faultstring xml:lang="en-US">Exchange Web Services are not currently available for this request because none of the Client Access Servers in the destination site could process the request.</faultstring><detail><e:ResponseCode xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors">ErrorNoRespondingCASInDestinationSite</e:ResponseCode><e:Message xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors">Exchange Web Services are not currently available for this request because none of the Client Access Servers in the destination site could process the request.</e:Message></detail></s:Fault></s:Body></s:Envelope></Trace>
Any ideas what is wrong?

Thanks
Vishnu



Sync Contacts to Database

$
0
0

Hello,

I am new to EWS.

I wrote a C# application using EWS Managed API to sync contacts from a custom database with Exchange. I am now looking to sync the other way - like if a user makes a change to contacts using Outlook or OWA, how can I get that change into the custom database and in real time? Is that possible? Can you guide me where to look?

Thanks.

Vishnu

identifying target folder for Outlook365 “Archive” action

$
0
0

The Outlook365 web app has an E keyboard shortcut (and an Archive menu item). The first time you use it with a selected message, Outlook lets the user create an "Archive" folder or pick an existing folder for quick message archiving. After that, pressing the E key will automatically move the selected message(s) to the archive folder they'd initially created or selected.

How can an EWS client programmatically determine which folder has been selected as the E archive target?


How can you get/set mailbox aliases via EWS or other API?

$
0
0
I know that you can get and set the email aliases for a mailbox using Powershell's Get-Mailbox commandlet (https://community.office365.com/en-us/f/148/p/230543/716640#716640). Is there a similar way to get and set mailbox email aliases via EWS or some similar API?

Script to re-stamp permissions in Office 365 (2010 Hybrid Migration)

$
0
0

Currently working on migration mailboxes from Exchange 2010 to Office 365.  AN issue I have run into is that Cross-Premises delegations are not supported (https://technet.microsoft.com/en-us/library/jj200581(v=exchg.150).aspx#considerations)

I want to retain the SendAs permissions for all my mailboxes on prem.  I don’t want to go into Office 365 and re-stamp them manually.  Does anyone have a script that can re-stamp my SendAs permissions from On-prem to the migrated mailboxes in Office 365?

Start and End time of edited recurrence appointment in ics file?

$
0
0

Hi Team,

I have a daily recurrence appointment with “RRULE:FREQ=DAILY;COUNT=3” and start from( DTSTART;TZID="Eastern Standard Time":20160417T000000 )and  end after( DTEND;TZID="Eastern Standard Time":20160417T020000 ), without editing recurrence appointment series when I save calendar and edit ics file I could find the DTSTART and DTEND time are same as I given but when edit the any single recurrence appointment only appointment “subject” and save the calendar and edit ics file the edited recurrence appointments DTSTART and DTEND  time are not same as I used , to ensure that I open the editor in outlook calendar I can see correct DTSTART and DTEND time of edited recurrence appointment. Could you please explain why DTSTART and DTEND  time of edited recurrence appointment get changed  in ics file and how logics works?

Replication procedure:

1.Save daily recurrence appointment with 3 recurrence count start  and end time is 12.00 am to 2.00 am.

2.Save Calendar and edit the ics file saved and check the time of start and end time of saved recurrence appointment.

3.Then come back to calendar and edit any recurrence appointment’s subject.

4. Save Calendar and edit the ics file saved and check edited recurrence appointment start and end time of edited recurrence appointment.

Thanks in advance.

Regards,

Jeyasri M


Proper way to use QueuedMessageEventSource.Fork

$
0
0

I'm writing an MTA that modifies the subject depending on if the email comes from an internal or external source.  I have been previously informed that using QueuedMessageEventSource.Fork is a good way to split the message on a per recipient basis. As such, I've been reading up on Fork and have some questions that I cannot resolve through the research I have done.

In the QueuedMessageEventSource.Fork remarks on MSDN, it is stated that "When you are using the Fork method in an asynchronous event handler, make the last line of the event handler a call to the Complete method...".  Does this apply when using the OnRoutedMessage event handler or only when using an asynchronous event handler from within OnRoutedMessage (for example, System.Threading.ThreadPool.QueueUserWorkItem)?  I can find one example on the net that uses Fork and it is from blogs.msdn.microsoft.com (https://blogs.msdn.microsoft.com/mstehle/2009/01/13/howto-sample-transport-agent-add-headers-categories-mapi-props-even-uses-a-fork/) and it does not call Complete.

Is there an easy way to determine if the message being processed is a forked message?

Thanks!

Josh

[EWS] No Sender information from ItemClass IPM.Note.Rules.OofTemplate.Microsoft

$
0
0

Hi all,

We're using EWS GetItem calls (we're not using Managed API, we're calling to http://mydomain.com/EWS/Exchange.asmx directly) to retrieve email (IPM.Note) and Auto Reply notices (IPM.Note.Rules.OofTemplate.Microsoft), we found that the response for IPM.Notes, include Sender/From information as expected:

<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:ServerVersionInfo xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" MajorVersion="15" MinorVersion="0" MajorBuildNumber="913" MinorBuildNumber="19"/></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><m:GetItemResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><m:ResponseMessages><m:GetItemResponseMessage ResponseClass="Success"><m:ResponseCode>NoError</m:ResponseCode><m:Items><t:Message><t:ItemId Id="AAAiAGJ6ZXhjaDA1QHNtZGV2ZXhjaDIwMTMueXVubWFpbC5jb20ARgAAAAAA79ekMo0yJkWbdCQeaWk1fgcAJggE5kF3QEiNuqqr0YExzwAAAAABDQAAJggE5kF3QEiNuqqr0YExzwAB57DrdgAA" ChangeKey="CQAAABYAAAAmCATmQXdASI26qqvRgTHPAAHnsjNR"/><t:ParentFolderId Id="AQAiAGJ6ZXhjaDA1QHNtZGV2ZXhjaDIwMTMueXVubWFpbC5jb20ALgAAA+/XpDKNMiZFm3QkHmlpADV+AQAmCATmQXdASI26qqvRgTHPAAACAQ0AAAA=" ChangeKey="AQAAAA=="/><t:ItemClass>IPM.Note</t:ItemClass><t:Subject>all bulleted</t:Subject><t:Sensitivity>Normal</t:Sensitivity><t:Body BodyType="HTML">Empty</t:Body><t:Attachments><t:FileAttachment><t:AttachmentId Id="AAAiAGJ6ZXhjaDA1QHNtZGV2ZXhjaDIwMTMueXVubWFpbC5jb20ARgAAAAAA79ekMo0yJkWbdCQeaWk1fgcAJggE5kF3QEiNuqqr0YExzwAAAAABDQAAJggE5kF3QEiNuqqr0YExzwAB57DrdgAAARIAEAArhIlOe5hqTreUfHFeKmcv"/><t:Name>image001.gif</t:Name><t:ContentType>image/gif</t:ContentType><t:ContentId>image001.gif@01D18487.96AAC380</t:ContentId></t:FileAttachment></t:Attachments><t:DateTimeReceived>2016-03-22T14:10:06Z</t:DateTimeReceived><t:Size>27365</t:Size><t:Importance>Normal</t:Importance><t:IsSubmitted>false</t:IsSubmitted><t:IsDraft>false</t:IsDraft><t:IsFromMe>true</t:IsFromMe><t:IsResend>false</t:IsResend><t:IsUnmodified>true</t:IsUnmodified><t:InternetMessageHeaders><t:InternetMessageHeader HeaderName="Received">from exchange2013.mydomain.com (9.119.6.107) by exchange2013.mydomain.com (9.119.6.107) with Microsoft SMTP Server (TLS) id 15.0.913.22 via Mailbox Transport; Tue, 22 Mar 2016 14:10:06 +0000</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="Received">from exchange2013.mydomain.com (9.119.6.107) by exchange2013.mydomain.com (9.119.6.107) with Microsoft SMTP Server (TLS) id 15.0.913.22; Tue, 22 Mar 2016 14:10:05 +0000</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="Received">from exchange2013.mydomain.com ([fe80::d878:4b58:3baf:5a5]) by exchange2013.mydomain.com ([fe80::d878:4b58:3baf:5a5%17]) with mapi id 15.00.0913.011; Tue, 22 Mar 2016 14:10:05 +0000</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="Content-Type">application/ms-tnef</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="Content-Transfer-Encoding">binary</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="Subject">all bulleted</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="Thread-Topic">all bulleted</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="Thread-Index">AdGERHoMcEZdtiitRFS/JBMwX2c7fw==</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="Date">Tue, 22 Mar 2016 14:10:04 +0000</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="Message-ID">&lt;399553a9316e4f7db28e55d872e56dc9@exchange2013.mydomain.com&gt;</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="Accept-Language">en-US</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="Content-Language">zh-TW</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="X-MS-Has-Attach">yes</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="X-MS-Exchange-Organization-SCL">-1</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="X-MS-TNEF-Correlator">&lt;399553a9316e4f7db28e55d872e56dc9@exchange2013.mydomain.com&gt;</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="MIME-Version">1.0</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="X-MS-Exchange-Organization-MessageDirectionality">Originating</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="X-MS-Exchange-Organization-AuthSource">exchange2013.mydomain.com</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="X-MS-Exchange-Organization-AuthAs">Internal</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="X-MS-Exchange-Organization-AuthMechanism">04</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="X-Originating-IP">[9.119.1.215]</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="X-MS-Exchange-Organization-Network-Message-Id">c5ec6b9f-e678-48cd-c2e7-08d3525bab52</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="Return-Path">user05@mydomain.com</t:InternetMessageHeader></t:InternetMessageHeaders><t:DateTimeSent>2016-03-22T14:10:04Z</t:DateTimeSent><t:DateTimeCreated>2016-03-22T14:10:06Z</t:DateTimeCreated><t:ResponseObjects><t:ReplyToItem/><t:ReplyAllToItem/><t:ForwardItem/></t:ResponseObjects><t:ReminderIsSet>false</t:ReminderIsSet><t:ReminderMinutesBeforeStart>0</t:ReminderMinutesBeforeStart><t:DisplayCc/><t:DisplayTo>bzexch02 bzexch02; user05 user05</t:DisplayTo><t:HasAttachments>false</t:HasAttachments><t:Culture>zh-TW</t:Culture><t:Sender><t:Mailbox><t:Name>user05 user05</t:Name><t:EmailAddress>user05@mydomain.com</t:EmailAddress><t:RoutingType>SMTP</t:RoutingType></t:Mailbox></t:Sender><t:ToRecipients><t:Mailbox><t:Name>bzexch02 bzexch02</t:Name><t:EmailAddress>bzexch02@mydomain.com</t:EmailAddress><t:RoutingType>SMTP</t:RoutingType></t:Mailbox><t:Mailbox><t:Name>user05 user05</t:Name><t:EmailAddress>user05@mydomain.com</t:EmailAddress><t:RoutingType>SMTP</t:RoutingType></t:Mailbox></t:ToRecipients><t:IsReadReceiptRequested>false</t:IsReadReceiptRequested><t:IsDeliveryReceiptRequested>false</t:IsDeliveryReceiptRequested><t:ConversationIndex>AdGERHoMcEZdtiitRFS/JBMwX2c7fw==</t:ConversationIndex><t:ConversationTopic>all bulleted</t:ConversationTopic><t:From><t:Mailbox><t:Name>user05 user05</t:Name><t:EmailAddress>user05@mydomain.com</t:EmailAddress><t:RoutingType>SMTP</t:RoutingType></t:Mailbox></t:From><t:InternetMessageId>&lt;399553a9316e4f7db28e55d872e56dc9@exchange2013.mydomain.com&gt;</t:InternetMessageId><t:IsRead>true</t:IsRead></t:Message></m:Items></m:GetItemResponseMessage></m:ResponseMessages></m:GetItemResponse></s:Body></s:Envelope>

But in IPM.Note.Rules.OofTemplate.Microsoft item, both Sender and From is missing in the XML:
<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:ServerVersionInfo xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" MajorVersion="15" MinorVersion="0" MajorBuildNumber="913" MinorBuildNumber="19"/></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><m:GetItemResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><m:ResponseMessages><m:GetItemResponseMessage ResponseClass="Success"><m:ResponseCode>NoError</m:ResponseCode><m:Items><t:Message><t:ItemId Id="AAAiAGJ6ZXhjaDA1QHNtZGV2ZXhjaDIwMTMueXVubWFpbC5jb20ARgAAAAAA79ekMo0yJkWbdCQeaWk1fgcAJggE5kF3QEiNuqqr0YExzwAAAAABDQAAJggE5kF3QEiNuqqr0YExzwAB57DrdwAA" ChangeKey="HwAAABYAAAAmCATmQXdASI26qqvRgTHPAAHnsjNs"/><t:ParentFolderId Id="AQAiAGJ6ZXhjaDA1QHNtZGV2ZXhjaDIwMTMueXVubWFpbC5jb20ALgAAA+/XpDKNMiZFm3QkHmlpADV+AQAmCATmQXdASI26qqvRgTHPAAACAQ0AAAA=" ChangeKey="AQAAAA=="/><t:ItemClass>IPM.Note.Rules.OofTemplate.Microsoft</t:ItemClass><t:Subject>Automatic reply: Test OOO</t:Subject><t:Sensitivity>Normal</t:Sensitivity><t:Body BodyType="HTML">&lt;html&gt;&#13;\n&lt;head&gt;&#13;\n&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;&#13;\n&lt;/head&gt;&#13;\n&lt;body&gt;&#13;\n&lt;div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0"&gt;&#13;\nOOO Internal &lt;br&gt;&#13;\n&lt;/div&gt;&#13;\n&lt;/body&gt;&#13;\n&lt;/html&gt;</t:Body><t:DateTimeReceived>2016-04-18T03:34:07Z</t:DateTimeReceived><t:Size>8814</t:Size><t:Importance>Normal</t:Importance><t:InReplyTo>&lt;3712fd4bb4834685b800260a79b99ddd@exchange2013.mydomain.com&gt;</t:InReplyTo><t:IsSubmitted>false</t:IsSubmitted><t:IsDraft>false</t:IsDraft><t:IsFromMe>false</t:IsFromMe><t:IsResend>false</t:IsResend><t:IsUnmodified>true</t:IsUnmodified><t:InternetMessageHeaders><t:InternetMessageHeader HeaderName="Received">from exchange2013.mydomain.com (9.119.6.107) by exchange2013.mydomain.com (9.119.6.107) with Microsoft SMTP Server (TLS) id 15.0.913.22 via Mailbox Transport; Mon, 18 Apr 2016 03:34:07 +0000</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="Received">from exchange2013.mydomain.com (9.119.6.107) by exchange2013.mydomain.com (9.119.6.107) with Microsoft SMTP Server (TLS) id 15.0.913.22; Mon, 18 Apr 2016 03:34:07 +0000</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="Received">from exchange2013.mydomain.com ([::1]) by exchange2013.mydomain.com ([fe80::d878:4b58:3baf:5a5%17]) with Microsoft SMTP Server id 15.00.0913.011; Mon, 18 Apr 2016 03:34:06 +0000</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="Content-Type">application/ms-tnef</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="Content-Transfer-Encoding">binary</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="Subject">Automatic reply: Test OOO</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="Thread-Topic">Test OOO </t:InternetMessageHeader><t:InternetMessageHeader HeaderName="Thread-Index">AQHRmSMn9CX7EJa2uEGGcyKVxGLLHZ+PFAzs</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="References">&lt;3712fd4bb4834685b800260a79b99ddd@exchange2013.mydomain.com&gt;</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="In-Reply-To">&lt;3712fd4bb4834685b800260a79b99ddd@exchange2013.mydomain.com&gt;</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="X-Auto-Response-Suppress">All</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="X-MS-Exchange-Organization-SCL">-1</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="X-MS-Exchange-Inbox-Rules-Loop">bzexch04@mydomain.com</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="X-MS-TNEF-Correlator">68fde6ec-59b6-44c0-8990-e385f2a4407f</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="MIME-Version">1.0</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="Date">Mon, 18 Apr 2016 03:34:06 +0000</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="X-MS-Exchange-Organization-MessageDirectionality">Originating</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="X-MS-Exchange-Organization-AuthSource">exchange2013.mydomain.com</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="X-MS-Exchange-Organization-AuthAs">Internal</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="X-MS-Exchange-Organization-AuthMechanism">03</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="Message-ID">&lt;224352a731ed42b4bbe83c3599bef8a0@exchange2013.mydomain.com&gt;</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="X-MS-Exchange-Organization-Network-Message-Id">f009174d-594e-47c4-c4c2-08d3673a4bd0</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="X-MS-Exchange-Parent-Message-Id">&lt;3712fd4bb4834685b800260a79b99ddd@exchange2013.mydomain.com&gt;</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="Auto-Submitted">auto-generated</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="X-MS-Exchange-Generated-Message-Source">Mailbox Rules Agent</t:InternetMessageHeader><t:InternetMessageHeader HeaderName="Return-Path">&lt;&gt;</t:InternetMessageHeader></t:InternetMessageHeaders><t:DateTimeSent>2016-04-18T03:34:06Z</t:DateTimeSent><t:DateTimeCreated>2016-04-18T03:34:07Z</t:DateTimeCreated><t:ResponseObjects><t:ReplyToItem/><t:ReplyAllToItem/><t:ForwardItem/></t:ResponseObjects><t:DisplayCc/><t:DisplayTo>User01</t:DisplayTo><t:HasAttachments>false</t:HasAttachments><t:Culture>en-US</t:Culture></t:Message></m:Items></m:GetItemResponseMessage></m:ResponseMessages></m:GetItemResponse></s:Body></s:Envelope>
Can anyone confirm it is a bug or intentional? We're very curious why the IPM.Note.Rules.OofTemplate.Microsoft do not return Sender/From information?



How to make event in send button in mail Exchange server 2010

$
0
0

Hello all,

i want to make event on send Button and open a pop before send mail. and i want to add Some text metadata,subject,header and footer in mail body.

                                  kindly help me its very urgent..thanks  in advance.

Do .pst repopulate to the .edb?

$
0
0

I accidentally deleted a user account from AD which was linked to the exchange mailboxes. This automatically removed the mailbox from exchange. I readded the user to AD and recreated the Mailbox. Now I have backups of the Exchange server, but would honestly not want to restore the entire .edb to the exchange server, i would like to do just the mailbox if possible.

If I export the PST to the user PC, will this repopulate the .edb or will this just be on his PC. And if this is the case is there a way to just import the Mailbox to the EDB without disrupting mailflow or any other mailboxes?

Thanks in advance.

SMeier


Exchange 2013 EWS C#

$
0
0

Environment is mixed Exchange 2007 and Exchange 2013. We are in the process of migrating to Exchange 2013 but have a custom transport agent in 2007 that is not working correctly on the 2013 servers and is, therefore, preventing us from migrating mailboxes.

I’m using EWS managed API to look for items in the Contacts folder of a mailbox. Everything works when I use credentials of the mailbox user itself, but when I use another mailbox that has read access to the mailbox I’m connecting to I get the below error:

“Exchange Web Services are not currently available for this mailbox because it could not determine the Client Access Services Server to use for the mailbox."

For example, if I create new ExchangeService using MailBox1 credentials I can call FindItems on MailBox1 contacts with no issues, but when I use another mailbox called ContactManagerMailBox to do the same it fails although ContactManagerMailBox mailbox is given access to MailBox1.

In addition to this working well in our current 2007 environment, it also works well in a test Exchange 2013 environment so it's possible that the co-existence has something to do with this not working.


Kenny

How to get VSAPI(Virus Scan Application Programming Interface)?

$
0
0

Hello Exchange Team,

     VSAPIVirus Scan Application Programming Interfaceis the anti-virus scan SDK of the Microsoft Exchange e-mail server 2000.At present,we are going to take the SDK(VSAPI) as a solution to secure our company's emails. But we do not know how to get the SDK. I am looking forward to that.Thank you!

Reading 'When' Property from email having meeting request

$
0
0

We are capturing email in journaling mailbox. have used EWS to read emails from journaling mailbox.

Now we can get From, TO, cc, bcc and body properties from email.

Pseudo code is as below
 foreach (Microsoft.Exchange.WebServices.Data.Attachment attachment in item.Attachments)
   if (attachment is FileAttachment)
   {
     //do something
   }
    else if (attachment is ItemAttachment)
   {
   
 ItemAttachment itemAttachment = attachment as ItemAttachment;
        itemAttachment.Load();

           if (itemAttachment.Item is MeetingRequest)
          {
            //TODO code here to check for meetingRequest in future                 
          }
          else if (itemAttachment.Item is Task)
          {
                 
          }
          else if (itemAttachment.Item is EmailMessage)
          {
            FillEmailMessage(item, journalingEmail, emailAttach, itemAttachment);
          }
  
   }

In above code(@TODO) we will like to read meeting request 'when'  and if possible 'location' property.
But I am not getting itemAttachment.Item type as MeetingRequest

I don't want to use approach of reading Calendar using ews at this moment.

Which property I should read to achieve this?

Regards,

ABBhagwat

Search and Update Contact

$
0
0

Hi,

I am trying to update other contact information using service account. I have following code

ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013);
service.Credentials = new WebCredentials("serviceaccount@xxxxx.com", "servicepassword");

service.HttpHeaders.Add("X-AnchorMailbox", "user1@xxxxx.com");
service.HttpHeaders.Add("X-PreferServerAffinity", "true"); ;
service.AutodiscoverUrl("user1@xxxxx.com", RedirectionUrlValidationCallback);

FolderId InboxId = new FolderId(WellKnownFolderName.Contacts, "user1@xxxxx.com");
SearchFilter.SearchFilterCollection searchFilterCollection = new SearchFilter.SearchFilterCollection(LogicalOperator.And);
searchFilterCollection.Add(new SearchFilter.IsEqualTo(ContactSchema.GivenName, "first"));
searchFilterCollection.Add(new SearchFilter.IsEqualTo(ContactSchema.Surname, "last"));

FindItemsResults<Item> findResults = service.FindItems(InboxId, searchFilterCollection, new ItemView(int.MaxValue));
foreach (Item item in findResults)
{
if (item is Contact)
{
    Contact contact = item as Contact;

    contact.MiddleName = "EWS Update";
    contact.Update(ConflictResolutionMode.AutoResolve);
    Console.WriteLine(contact.GivenName + "=========" + contact.Surname + "===========" + contact.DisplayName);
}
}

It throws exception at contact.Update(ConflictResolutionMode.AutoResolve). Exception message "When making a request as an account that does not have a mailbox, you must specify the mailbox primary SMTP address for any distinguished folder Ids"

Though It updates middle name.


Satyam MCITP, MCPD

Getting deleted item Id using EWS and SOAP

$
0
0

Hello,

I subscribed to the <t:EventType>DeletedEvent</t:EventType>

but when a contact is deleted, I don't get the id of the deleted item.  I just get the id of the folder.

<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:ServerVersionInfo MajorBuildNumber="1130" MajorVersion="15" MinorBuildNumber="6" MinorVersion="0" Version="V2_23" xmlns="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/></s:Header><s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><m:GetEventsResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><m:ResponseMessages><m:GetEventsResponseMessage ResponseClass="Success"><m:ResponseCode>NoError</m:ResponseCode><m:Notification><t:SubscriptionId>GQBpcHRiZXNydjAzNC5pcHRyYWRlLmxvY2FsEAAAALKeQrz0K2tCngv/OAAerAQA8L2g1FfTCBAAAABxGZVObIMSRb3EEiGbCK5z</t:SubscriptionId><t:PreviousWatermark>AQAAAFeT/HxciLtGqtGXz9FFix/X75QDAAAAAAE=</t:PreviousWatermark><t:MoreEvents>false</t:MoreEvents><t:ModifiedEvent><t:Watermark>AQAAAFeT/HxciLtGqtGXz9FFix+R8JQDAAAAAAE=</t:Watermark><t:TimeStamp>2016-03-29T13:19:50Z</t:TimeStamp><t:FolderId ChangeKey="AwAAAA==" Id="AQMkADRlOTUxOTcxLTgzNmMtNDUxMi1iZGM0LTEyMgAxOWIwOGFlNzMALgAAA/pRsgK3Fl9GiWFseXuQDzYBADwlg4SNpXVOnMk47q3CxVoAAAIBDgAAAA=="/><t:ParentFolderId ChangeKey="AQAAAA==" Id="AQMkADRlOTUxOTcxLTgzNmMtNDUxMi1iZGM0LTEyMgAxOWIwOGFlNzMALgAAA/pRsgK3Fl9GiWFseXuQDzYBADwlg4SNpXVOnMk47q3CxVoAAAIBCAAAAA=="/></t:ModifiedEvent></m:Notification></m:GetEventsResponseMessage></m:ResponseMessages></m:GetEventsResponse></s:Body></s:Envelope>

Is there a way to get the id of the item ?

PS : sorry for bad English.

Viewing all 7132 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>