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


Please Help Members By Posting Answers For Below Questions

How to create war file?

605


What is Servlets and explain the advantages of Servlet life cycle?

577


What is the life cycle of a servlet?

773


Define context initialization parameters.

564


Is that servlet is pure java object or not?

630






How we can get ip address of client in servlet?

528


Tell the new features added in servletrequest interface i.e. Servlet 2.4

565


What is the difference between servlet and filter?

518


Explain the jar and war files in servlet?

543


What is meant by a servlet?

594


What is a servlet-to-servlet communcation?

637


What is the difference between Difference between doGet() and doPost()?

750


How can a servlet be used to generate plain text instead of html?

537


What is SingleThreadModel interface?

663


List out difference between a JavaBean from a Servlet?

558