com.java4less.rmail
Class RMailServlet
com.java4less.rmail.RMailServlet
- public class RMailServlet
Handle the HTTP POST method by sending an e-mail.
This servlet is used to send e-mail from you web server. The example applets
provided with RMail will work with this servlet if you include the parameter
RMAIL_SERVLET in the applet.
The servlet requires the following parameters to be included in the
servlet.properties file:
- SERVER: smtp server.
- COMPUTER: servlets's computer name or address
- USER: email address to send the messages from
- DEBUG: debug mode (Y or N).
for example, the file servlet.properties could be: RMailServer.initparams=SERVER=127.0.0.1,COMPUTER=127.0.0.1,USER=user@company.com,DEBUG=Y
Method Summary |
void |
doGet(com.java4less.rmail.HttpServletRequest request,
com.java4less.rmail.HttpServletResponse response)
|
void |
doPost(com.java4less.rmail.HttpServletRequest request,
com.java4less.rmail.HttpServletResponse response)
|
void |
init()
Handle the HTTP POST method by sending an e-mail |
RMailServlet
public RMailServlet()
init
public void init()
throws com.java4less.rmail.ServletException
- Handle the HTTP POST method by sending an e-mail
doGet
public void doGet(com.java4less.rmail.HttpServletRequest request,
com.java4less.rmail.HttpServletResponse response)
throws com.java4less.rmail.ServletException,
java.io.IOException
doPost
public void doPost(com.java4less.rmail.HttpServletRequest request,
com.java4less.rmail.HttpServletResponse response)
throws com.java4less.rmail.ServletException