I'm trying to write a program that, after the user reviews certain equipment and answers some questions about them, it creates a report and automatically sends it to a database.
The program itself is not very complicated, I have it more or less solved, but I fail in the part of sending the mail. I have been searching, and I have found the JavaMail API, and I have even learned to send emails with it, more or less, but my company blocks any attempt of an external program to send e-mail, so I have decided to give it a different approach and try that instead of sending it automatically, prepare the mail in the Outlook editor itself, ready to be sent, and that the user only has to click to send, after reviewing it.
But looking here, or Javamail documentation, or even googling, I can't find any reference to people doing it, even knowing that it can be done, as I've been using some programs that do this by themselves!
So, the question is: can I do this with JavaMail? If yes, could you provide me with an example, or something, to learn how to use it? If not, any other libraries able to do that?
Maybe this is a simple question, maybe Java itself has a function for doing it. But I've been looking for it for a week, and I can't find anything that I can use.
I'm very very new to programming (a bit more than a year), so try to keep the answer to a basic level that some novice can understand, please.
As an example, let's say I have an equipment called X. The programs asks me "Does X makes excessive noise?" and I check "Correct" button. Then, it asks "Has X a normal pressure level?", and I check "Incorrect" button, and add a comment "Pressure level to high". And so on, until I've answered every question. Then, when I have finished with X equipment, and push the "Finish" button, I want a "New Email" outlook window to pop out, with the receiver already fulfilled, "Equipment X 27/12/2017 morning revision" as subject, and the body something like:
"Noise revision: correct
Pressure level: incorrect Comment: Pressure level to high
Question 3: correct
Question 4: correct
etc."
I've solved already how to create the body, and assign every parameter to its place. The problem is the pop out and auto fulfilling thing, how to export all that data to outlook to be ready to be sent. And yes, bosses specify that I have to use outlook.