I am trying to send an Outlook meeting invite using JAVA. I have managed to send the invite using JAVA mail API as discussed in this post
How to send an iCal meeting request using Java Mail, and receive the response
The problem is that here Location of the Meeting Room is hard-coded.
"LOCATION:Conference room\n"
I need to retrieve the available rooms from the Outlook and then select one of these rooms as my meeting room location.
You may find EWS (Exchange Web Services) helpful. See EWS Managed API, EWS, and web services in Exchange for more information.
Also you may try to automate Outlook. See How to automate Outlook from another program.
Related
I want to read and send emails using my own email Id.
I have created and app on portal.azure.com with Client ID and Secret ID/Value.
I want my java app to run in the backend and read emails and also send emails using Microsoft Graph API/SDKS.
I am struggling to get it done since two weeks, I am not getting any solution.
I also put another stackoverflow question but no one replied on it
Read and write Email using Microsoft Graph API Java
I can only provide delegated permissions on the app and not Application permissions which requires admin consent.
I am trying to trigger an external API when i reply to an email coming from a specific sender. To describe the use case , we have an internal platform where people ask specific questions and experts answer them similar to stack overflow.
We want to enable a outlook feature for experts answering questions which would enable the expert to reply to an email notification (coming from the platform) and when he hits send the action would be to call the POST end point for the platform which create a new reply on the original post.
I have looked at Microsoft flow and EWS API but i could not find exactly what I was looking for. I can create custom connectors which would trigger an action when a new email comes in the inbox. But , there was no flow which would trigger an action when you reply to a specific email.
I am looking for some help on what can be done and which APIs/tools can be used to achieve what we are looking for.
Thanks
One option is to use the "on send" capability for Outlook web add-ins, but you are limited to supporting only Outlook Online as it doesn't currently support Outlook for Windows and Mac (and you can't publish the add-in to the Office Store).
The best choice would be to develop a COM add-in where you will have full control over the reply and send events, and the opportunity to cancel or delay those events while you make your web requests.
An outside option is to use Graph delta queries to look for new items in the user's Sent Items folder to detect these send operations. There are similar capabilities in EWS with notification subscriptions and transport agents.
In our case what worked best was using Graph Delta Queries. Since the "on send" capability was limited and outlook web add-in was restricted for our corp outlook.
The solution that worked for us was setting up a separate email address for monitoring all the replies that would go out to our API. Then using graph delta queries we would get the latest emails since the inbox was last synced. The response from the query would be processed and after body is extracted POSTing it to our API with the body as the request body
I am developing a Java EE 6 web application, i want to add email notifcations to users who will subscribe in this web application.
the applications is pretty simple buts it needs to send users responses via email.
I learned that there is a JavaMail API available, should I use it ? or there is a better approach to do this ?
I am not asking on how to use it, i am asking wether its recommended or not, for safety and authenitaction measures, also performance ofcourse
I think the answer has more to do with the organization in which you develop the app than the app itself.
If you're writing this for yourself or another organization, it's likely that you'll want a mail server to handle sending those emails. You can have your app send the request to create the email, but the mail server will do what it was born to do and send the email.
We are in the process of developing a CRM application and for that we need to integrate with Microsoft Outlook.
Would you please tell me:
What is the best way to integrate with outlook so that we can send, receive, search emails, calendar items and contacts. Please note that we use Flex front end and Java back end
Are there readily available tools (commercial or open source) that we can use?
Can we integrate directly with MS Exchange server through pop or imap. I believe pop is bit restrictive, where we can't search emails. We really don't want to retrieve emails and store it locally
Appreciate your help
I would integrate to Outlook with a C# add-in.
We do similar and use the credential cache when authenticating with a webservice within our crm.
We currently have a java/jsp online web service that includes it's own custom calendar. I am trying to do some research into the possibility of connecting it to a users outlook. Our basic needs that are most simple is some way to sent the person a meeting request that can be added to their outlook from our service.
I know the ideal solution is to sync back and forth but simply being able to import the data from our calendar into someone's outlook would be sufficient.
Does anyone have any resources they can point me to that might help with information gathering, or any example/comments?
Here is a sample to sync calendars using javascript,ie and ActiveX
http://www.codeproject.com/KB/office/OutlookDemo.aspx
I found a simple solution to getting what we needed. Outlook can email an event invite, I had one emailed to me... then copied the format of the email and just have the system sending event invites as emails. That is sufficient for our needs.