java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.joshy.webmail.BaseMailServlet
org.joshy.webmail.SendMail
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class SendMail
- extends BaseMailServlet
| Fields inherited from class javax.servlet.http.HttpServlet |
|
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SENDMAIL_XSL
public static final java.lang.String SENDMAIL_XSL
- See Also:
- Constant Field Values
SendMail
public SendMail()
processRequest
public void processRequest(Context context)
throws java.lang.Exception
- Description copied from class:
BaseMailServlet
- This method must be implemented by the subclass. The actual code that
does something goes in here. This basically does what doGet() does in
a traditional servlet.
- Specified by:
processRequest in class BaseMailServlet
getFromAddress
public java.lang.String getFromAddress(Context context)
throws java.net.UnknownHostException
generateForward
public void generateForward(Context context)
throws java.lang.Exception
useSignature
public boolean useSignature(Context context)
getToAddress
public java.lang.String getToAddress(Context context)
getCCAddress
public java.lang.String getCCAddress(Context context)
getBCCAddress
public java.lang.String getBCCAddress(Context context)
getSubject
public java.lang.String getSubject(Context context)
showNewMail
public void showNewMail(Context context)
throws java.lang.Exception
quoteBody
public java.lang.String quoteBody(java.lang.String text)
saveMail
public void saveMail(Context context)
throws java.lang.Exception
sendMail
public void sendMail(Context context)
throws javax.mail.MessagingException,
javax.mail.internet.AddressException,
java.net.UnknownHostException
createMessage
public javax.mail.Message createMessage(Context context,
java.lang.String subject,
java.lang.String body)
throws javax.mail.MessagingException
handle_timeout
public boolean handle_timeout(Context context)