title: Open Mail Client through Web (Java - Spring)
body: <p>I have a webpage running Java with Java Server Pages. I let the user determine, which other users he want to send an email to, and then go into my method, to check for their mail-addresses. After that, I would want the clients mail program to open up with the pre-filled tags (To, CC, BCC).</p>
  
  <p>At the moment I use <code>Desktop.getDesktop().mail()</code>. It works perfectly well on my testserver on my pc, but not on our webserver. It produces a "Null Pointer Exception" (I guess no Mail-Client can be found on the server).</p>
  
  <p>If I just send the mailto as return address of the function: <code>return mailto:jack-normal@abc.de?cc=abc@de.fe</code>, the mail client gets opened, but the user gets a blank page in the webbrowser as well! Not quiet what I want.</p>
  
  <p>I found no solution searching stackoverflow for opening a web client, from the web... </p>