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 to create war file?
What is Servlets and explain the advantages of Servlet life cycle?
What is the life cycle of a servlet?
Define context initialization parameters.
Is that servlet is pure java object or not?
How we can get ip address of client in servlet?
Tell the new features added in servletrequest interface i.e. Servlet 2.4
What is the difference between servlet and filter?
Explain the jar and war files in servlet?
What is meant by a servlet?
What is a servlet-to-servlet communcation?
What is the difference between Difference between doGet() and doPost()?
How can a servlet be used to generate plain text instead of html?
What is SingleThreadModel interface?
List out difference between a JavaBean from a Servlet?