Send text/email from portable desktop java application - java

This question is more of like a requirement feasibility study.
Requirement: I have a java based portable(USB)application. I need to add a feature where the user can send text/email from this application.
I know that someone, who can plugin the application via USB , can open up the browser and send an email. Fairly simple. However, if I want that the user need not open the browser and send a text/email, is that possible ?
I know how to send email (using Java Mail API) from a Java Servlet. I want to achieve the same from this portable java application.
Appreciate any help. Thanks.

Related

Sending and receiving data from an Android application to a web hosted Java application

I've been looking around all morning, and can't seem to figure this one out. I know it's not as complicated as I think it is, and all I need is just some pointers to the right direction.
I have an Android application that takes some user input, sends it to a Java application over the web, and then receives some output based on the input.
My Android and Java applications are ready, but how do I go about sending and receiving the data over the web? I understand that I'll be sending and receiving HTTP requests, but my problem is where I'll be sending them and receiving them from. Do I host my Java application on a Servlet like Tomcat, or do I use something like OpenShift to host my application for me?
I have no trouble with sending some HTTP request from my Android application to the web and receiving some output back, but my problem is that my web service needs to use a Java library to process the input and generate the output. I'm just not sure how I'm supposed to get this data to and from this Java library that needs to be hosted on the web.
I hope my question makes any sense.
EDIT: Perhaps I wasn't clear with what exactly I need help with. I do realize that the architecture I use doesn't really make any difference, but the problem I have is with how I'm supposed to use this architecture.
Let's say I have a registered domain name that I can easily send to and receive data from using my Android application - no trouble with that. But how am I supposed to integrate my Java library with this server? Do I just create an applet and put it on my server? Does my web host even allow Java applets to run?
I guess my question is how I'm supposed to get through the "barrier" between my HTTP request / transport layer protocol and my Java application.
Server architecture usually does not matter. You can use Java, NodeJs, Rails, Python, .NET, etc. You just need an endpoint that accepts a HTTP POST/PUT/GET/DELETE/PATCH verb.
This is more a question of "how do I set up a server to accept input" and its a very large topic in itself. I would advise you look at PAAS solutions like:
Parse.com
Kinvey.com
You can use their tools to build a solution fairly quickly. If you need something custom you'll need to build your backend in the language of choice and host it online via AWS, Google Cloud, Heroku, a VPS or something similar.

Can we fetch mails from inbuilt email app?

Is there any way fetch the mails from the inbuilt Email app that comes with the android device itself? Please note that I am not referring to the Gmail app. ??? If yes then please give a hint about it.
As per my research till now m not able to find any way to do this.
Thanks in advance....
This would only be possible for applications that expose this data via some form of API. The Email application that is part of the Android open source project has no documented or supported API of this type.

JavaMail api usage in a web application

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.

Integration with outlook

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.

sending message to my cell using Java application

I have written an chat application in java, now I like to update my application whenever user registers my chat application I should get a sms on my cell.
I am not getting how should I start with messaging service. Let me know any ideas or links.
Thanks
The solution is fully explained here (it even provides an example application available for download with source):
http://wiki.forum.nokia.com/index.php/How_to_Send_Text_SMS_in_Java_ME
Unless you've already know how to write Java MIDlets, I've explained the "startup"-steps here:
how can I create an application for mobile phone with .JAR extension?

Categories