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 do you mean by url pattern in servlet?

833


Explain jsessionid?

802


Whether we can get deadlock situation in servlets?

807


What is servlet and its advantages?

771


Explain web application directory arrangement?

790


Given the request path below, which are context path, servlet path and path info?

762


Which interface should be implemented by all servlets?

934


Can you create a deadlock condition on a servlet?

791


Where do you define dispatcherservlet?

745


How is the get () method different from the post() method?

734


What is servlet in simple terms?

784


What is meant by Servlet? What are the parameters of service method?

805


What is the difference in between the httpservlet and generic servlet?

854


What is the directory structure of a war file?

904


Why is servlet used?

898