Does anyone know how to override the display name of the sender of an instant message using the Microsoft.Lync API?
Thanks
It should be possible using Conversation.Impersonate(...), which contains the following option:
displayName
Type: System.String
The display name of the user to impersonate. Optional.
However, when I tried it, setting the displayname changed nothing. I ended up just setting the uri property to someusername#example.org to show the username. It looks like the Lync client only displays usernames for known users.
Related
I want to simply get in my code if the user has his email confirmed or not. Without an async method. Can someone help me please?
Couple of options, if i understood your question correctly:
In your database add another 2 columns "EmailConfirmationID" perhaps of type GUID (UniqueIdentifier) and Verified (bit). When the user registers you can insert a new value into EmailConfirmationID send this link to the user (creating a URL) via email. When they click this link within the email you would have the page handle their request and set Verified to true.
Have a look at this link http://www.asp.net/identity/overview/features-api/account-confirmation-and-password-recovery-with-aspnet-identity
I am using Exchange Web Services trying to find the Organizer of the meeting's email address
I have tried using
Appoint.Organizer.Address
but some of the properties are null (see image).
How do I get the email address of the organizer?
Link to image (sorry not enough rep to embed)
http://i.stack.imgur.com/wSv2r.png
What operation are you using ? If you have just used FindItems then that's what you would expected because only the displayName of the Sender (which is the Organizer) is returned with FindItems. To get the Address property populated you would need to do a GetItem (or Load in the Managed API).Or if you really want to save a call you could try using the PidTagSenderSmtpAddress extended property http://msdn.microsoft.com/en-us/library/office/jj713594(v=office.15).aspx
Cheers
Glen
Do you know how this meeting came into the mailbox? Was it sent from a sender outside of Exchange, or another mailbox in that Exchange organization? What version of Exchange? Also how are you binding to the appointment? It would be good to see that code. I've tried this with a few meetings here and they all have the Address property populated. Your screenshot shows a MailboxType field of "OneOff", and I'm not sure off the top of my head how to make that happen.
Typically "OneOff" refers to a recipient that couldn't be resolved. In this case, you might try taking the information that is present (in this case the display name) and calling ResolveName to see if you can get the address that way.
I have programatically created a user in Active Directory. I want to set that user's email. I used the following code to set email address in active directory:
UserDirectoryEntry.Properties["mail"].Value = "john#gmail.com";
UserDirectoryEntry.CommitChanges();
At this point, the email address gets set in active directory properly. But the moment, i try to update another property for that user say for eg:
UserDirectoryEntry.Properties["telephoneNumber"].value = "022-2345678";
UserDirectoryEntry.CommitChanges();
After this point, the email address that we set earlier to "mail" field gets replaced with SamAccountName#domainName.com.
Can you please tell me why the email address is getting replaced with SamAccountName#domainName.com even if i have set it to "john#gmail.com".
I m using APIs of Active Directory.
I do not know if this works for you, but you can try adding the email instead of setting it:
UserDirectoryEntry.Properties["mail"].Add("john#gmail.com");
You will be still able to find the user bu this email.
I am creating a sample Win8 app and using share contract I am trying to share HTML Content. When the user select email app from the share application option I want to set email address in TO field. How can I do so? Following is my code written to share HTML content:
Code:
DataPackage requestData = request.Data;
requestData.Properties.Title = this.PageViewModel.JobInformationDetail.JobNumber;
requestData.Properties.Description = this.PageViewModel.JobInformationDetail.CustomerSignatureName;
//requestData.SetText("Sample Text");
StorageFile signatureStream = await GetInkManagerStream();
requestData.SetHtmlFormat(Windows.ApplicationModel.DataTransfer.HtmlFormatHelper.CreateHtmlFormat(this.GetMailDescription()));
Following images shows where to set the email address in To field:
You can't do that. We'll have a solution to this until WinRT come up with a standard email DataPackage format to StandardDataFormats and support it in the email app.
I think Microsoft's default Mail should be upgraded. It's entirely depend upon sharing target app to show particular data to particular place. DataPackage's Title property is set as subject and Description property is set as mail body but there's no provsion for to email(s).
If sharing experience is best one then user will user default Mail app otherwise they will go for another mail apps.
What i want to do is when we click on Reply button , the From address field will be populate with the email-id (default team's default queue's email-id). Current scenario is populated with logged in user.
You can create script which will be executed onLoad of email form. Check is it 'Replay' action (Url will contain _InReplyToId parameter). Find queue from original email using his GUID from url, and set it to From field.
EDIT:
This example will solve your problem :)