Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

openfuture.bugbase.actions
Class SendMailAction  view SendMailAction download SendMailAction.java

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended byopenfuture.bugbase.actions.BugBaseAction
          extended byopenfuture.bugbase.actions.SendMailAction
All Implemented Interfaces:
openfuture.bugbase.model.JspConstants

public class SendMailAction
extends BugBaseAction
implements openfuture.bugbase.model.JspConstants

Action bean for sending an email.

Created: Tue Mar 06 20:39:00 2001

Version:
$Revision: 1.4 $

Field Summary
 
Fields inherited from class openfuture.bugbase.actions.BugBaseAction
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Fields inherited from interface openfuture.bugbase.model.JspConstants
ATTACHMENT_DIR, ATTACHMENT_URL, BUG_REPORT, BUGBASE_SERVLET, LOCALES, LOGIN_MANAGER, MAILSERVER, MD_PROVIDER, NEXT_PAGE, PACKAGES, PROJECT, QUERY, QUERYSTRING, REPORTS, RESULT, SENDMAIL, SERVLET_CLIENT, SERVLETPATH, USER, USER_ID
 
Constructor Summary
SendMailAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward perform(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Send an email from Bug Base.
static void sendmail(java.lang.String mailServer, java.lang.String fromAddress, java.lang.String toAddress, java.lang.String subject, java.lang.String content)
          Send an email via an SMTP mail server to a single recipient.
 
Methods inherited from class openfuture.bugbase.actions.BugBaseAction
checkLogin, findNextPage, getClient, getContext, getErrors, getLoginManager, getMapping, getMasterDataProvider, getProject, getQueryString, getServletPath, getSession, getUser, initialize, saveOriginalRequest, setClient, setContext, setErrors, setLoginManager, setMapping, setProject, setSession, setUser
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SendMailAction

public SendMailAction()
Method Detail

perform

public org.apache.struts.action.ActionForward perform(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response)
                                               throws java.io.IOException,
                                                      javax.servlet.ServletException
Send an email from Bug Base. The following forwards are generated:
  • success: the action was successful.
  • error: the action failed or an error occured.


sendmail

public static void sendmail(java.lang.String mailServer,
                            java.lang.String fromAddress,
                            java.lang.String toAddress,
                            java.lang.String subject,
                            java.lang.String content)
                     throws javax.mail.internet.AddressException,
                            javax.mail.MessagingException
Send an email via an SMTP mail server to a single recipient.