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

What is preinitialization of a servlet?

584


What is the difference between portlet and servlet?

514


Explain the difference between servlet and cgi?

611


What is the disadvantage of cookies?

580


Differentiate between the get and post method

565






What is the workflow of a servlet?

719


How can we invoke another servlet in a different application?

706


What is the difference between CGI and Servlet?

590


Are Servlets Thread Safe? How to achieve thread safety in servlets?

560


how the HTML data stored in web server?

1953


What do you mean by singlethreadmodel interface?

582


Is servlet synchronized?

605


How can we implement a jsp page?

631


Which httpsession object is used to view and manipulate information about a session?

735


What is a cookie What is the difference between session and cookie

596