Is it possible to send a mail from a servlet? Explain?
Answer Posted / bhushan
yes its possible to send mail from servlets.
using dopost()method we can compose mail by hard coding HTML inside the out.println()-- this is Hidden form field mechanism. & urlRewriting.
And using sendRedirect() we reach to destination servlet.where ew again use req.getParameter().
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you run a servlet?
How can we include static files in the jsp page?
What do you mean by cgi?
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
What are the objects involved when a servlet receives a call from client?
Is servlet a server side scripting language?
What are the benefits of using servlet over cgi?
How can you use a servlet to generate a plain text instead of html?
Difference between doget and dopost?
How do you define a servlet?
What is servlet and its use?
How the JSP file will be executed on the Server side?
How is an application exception handling is done using a servlet?
What are the uses of servlets?
What are the new features added to servlet 2.5?