java.lang.Object
org.apache.struts.action.Action
openfuture.bugbase.actions.BugBaseAction
openfuture.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 $
Fields inherited from class openfuture.bugbase.actions.BugBaseAction |
|
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 |
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 |
SendMailAction
public SendMailAction()
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.