AppointmentItem.UserProperties Lost on Recipients Not in Organizer's Domain - outlook

Outlook 2010
Setup:
Exchange Account #1 (Domain A)
Exchange Account #2 (Domain A)
Exchange Account #3 (Domain B)
Windows 8 Enterprise machine. I am logged into Domain A. I get receive/send email on all Exchange accounts. Whenever I create a meeting request the custom user property values are not read by Exchange Account #3. There are null or blank values.The code is suppose to populate for region controls on this.FormRegionShowing event. The 2 domains are federated with each other. I am stumped.
Textbox1.Text = (string)appointmentItem.ItemProperties[PropertyVariables.Property1].Value;
Textbox2.Text = (string)appointmentItem.ItemProperties[PropertyVariables.Property2].Value;
Checkbox1.Checked = (bool)appointmentItem.ItemProperties[PropertyVariables.Property3].Value;

This is to be expected - when a meeting invitation/update is sent through SMTP it is converted to iCal and all MAPI specific properties are stripped.
You can try to set a special UseTnef MAPI property (DASL name http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/8582000B) using MeetingItem.PropertyAccessor, but you can do that only in the Application.ItemSend event (since MeetingItem is created by Outlook, not your code).

Related

Outlook preselect sender

We use Office365 and Exchange Online (as part of out Office365 plan). We have two users and a shared mailbox. Both users have full access to the shared mailbox and added it to Outlook. So they can read inomcing messages and select the E-Mail address of the shared mailbox as sender.
Is it possible to set the E-Mail Address of the shared mailbox as preselected sender on writing a new E-Mail or on answering?
that's possible if you are running Outlook (not OWA) and a third-party add-in (or your own VBA script) that populates the From: field.

How to have two separated contacts with same email address?

Using Exchange 2013 and Outlook 2013, I need to have two separated contacts with same email address. What I've seen is once I create a contact with an email address, for the second contact (even though I choose to create a new contact instead of update the existing one) Outlook merges two contacts details.
Now the question is, is this doable at all? Can I have two or more contacts sharing same email address but having isolated details?
In fact, I'm using ews managed API to do this programmatically, but that doesn't matter because same thing happens by using Outlook directly.
Update: Looks like Outlook 2013 by default links contacts with the same email address. And according to this post Office Community the only way to stop that is changing a registry key!
Now I wonder if it's possible to stop this from Exchange side.
You can turn off Duplicated detection in Outlook in the Option-Contacts, in EWS it shouldn't be doing any duplicate detection, if the contact is in the GAL then it will resolve it to the GAL address. Generally in this case your creating a OneOff Email address for a contact you can ensure that unique by using a different display-name when your create the contact. eg
Contact contact1 = new Contact(service);
contact1.GivenName = "Fred";
contact1.Surname = "Smith";
contact1.EmailAddresses[EmailAddressKey.EmailAddress1] = new EmailAddress("fred smith1", "fsmith#domain.com");
contact1.Save();
Cheers
Glen

Get/change safe senders list and blocked senders list in C# VSTO

I'm working on an Outlook 2010 add-in that needs to prompt users before following a link found in an email. During the process I'd like to offer the user the choice to trust or block the sender of the email, thus I need to access both lists. I realize that Junk/Spam email options are not exposed by Outlook OM. Although I was successful in accomplishing the task using Redemption, unfortunately I'm not allowed to use it by my employer, so I need to find another way. I found this post (Get Safe sender list in Outlook 2007 C# Add in) that points in the direction of either MAPI properties or registry keys.
My preference would be MAPI props, but I'm not sure what object that property belongs to. Would it be the property of the default store?
Outlook.Store obj = Application.Session.DefaultStore;
const string PR_SPAM_TRUSTED_SENDERS_W =
"http://schemas.microsoft.com/mapi/proptag/0x001f0418";
Outlook.PropertyAccessor pa = obj.PropertyAccessor;
string list= pa.GetProperty(PR_SPAM_TRUSTED_SENDERS_W).ToString();
Unfortunately I'm getting an error message (translated to English) like 'Object doesn't have such property'. In production it would have to work with Outlook clients connected to Exchange 2007 mailboxes.
Ok found it. The actual property is called PidTagExtendedRuleMessageCondition and the Blob format is described here MS-OXCSPAM and in MS-OXORULE respectively.

How To Create an Exchange 2010 Email That Just Distributes Its Received Emails to Other Users?

How do you accomplish setting up an Exchange email that is made just to have users send email to it, then have that email automatically distribute received emails to specified email addresses?
I figured this out. I need to create a distribution group within the Exchange 2010 ECP (Exchange Control Panel) by going to remote.mydomain.com/ecp and creating a distribution group with the desired associated users.

microsoft outlook how to send an email from an email group which I belong to?

I belong to a email group in the company I work for, such as for example, researchteam#company.com. My personal email is raulmercado#company.com. I want to send emails from researchteam#company.com instead of raulmercado#company.com. I'm using Microsoft Outlook and Exchange as a Email Server.
Thanks for your help!
If you using Outlook 2010 then you could try MailItem.SendUsingAccount property.
Here is an example
Exchange always sends out all emails coming from the default email address. And for each Exchange mailbox this default address is fixed and can not be changed in Outlook. You can use one of two options:
You can create an additional mailbox in Exchange for the second address (as the default email there of course) and then give your normal account "Send-As" rights for that new account. Then you can switch on the "FROM" field in Outlook (right-click options > Show Fields > From) and use that field to select the account you want to send from. In Outlook 2013 you can also just connect to the additional Exchange account and might get slighly easier switching.
You can use a 3rd party tool like ChangeSender (http://www.servolutions.com/changesender.htm) to get automatic switching of the accounts when you answer email (answered automatically with the account the email was received under).
Hope this helps - Claus

Resources