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 http servlet in java?
Which interface should be implemented by all servlets?
How do you get the ip address of the client in servlet?
How can you run a servlet program?
Can we use the constructor, instead of init(), to initialize servlet?
What is meant by a servlet?
What is the difference between get and post methods?
If a servlet is not properly initialized, what exception may be thrown?
What are the difference between RMI and Servlets?
Describe in brief RequestDespatcher?
What is the purpose of requestdispatcher interface?
How can we implement a jsp page?
Explain the servlet context.
Which protocol will be used by browser and servlet to communicate
What is the servlet?