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
What is load-on-startup in servlet?
What is the servlet?
Which protocol will be used by browser and servlet to communicate
What is the use of send redirect () method?
What is the difference between servlet and filter?
Which event is fired at the time of setting, getting or removing attribute from application scope?
Which is the methods of generated servlet?
Explain the servlet filter.
What is difference between server and servlet?
How to commuincate between an applet and a servlet?
What are the exceptions thrown by servlets? Why?
Elucidate servlet attributes and its scope?
What are all the advantages of servlet over cgi?
What is servlet in tomcat?
What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?