'Sending mail using Javax mail and HTML Form
I have an HTML form where I have 2 fields "Email Subject" and "Email Content". If someone enters content like :
"Dear Sir,
Welcome to Java World."
On form submission, a handler is called and I am saving content using getParameter("emailContent") into a String variable. My question is, if I want to share mail-in exact same way as the user typed in form input, how can I achieve that? as HTML eliminates spaces.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
