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
Which is better jsp or servlet?
Does servlet have main method?
What is ServletContext object?
How can you start a jta transaction from a servlet deployed on jboss?
How to get the path of servlet in the server?
What is meant by a web application
What are the types of protocols supported by httpservlet ?
Explain the methods of request dispatcher in servlet?
How to handle exceptions thrown by application with another servlet?
How native code can be used in a servlet?
How would you create deadlock on your servlet?
What are life cycle methods of a servlet?
What is the purpose of inter-servlet communication?
Whats the advantages using servlets over using CGI?
What are the different mode that servlets can be used?