Package org.fugerit.java.tool.mail
Class SendMail
- java.lang.Object
-
- org.fugerit.java.tool.ToolHandlerHelper
-
- org.fugerit.java.tool.mail.SendMail
-
- All Implemented Interfaces:
ToolHandler
public class SendMail extends ToolHandlerHelper
- Author:
- Daneel
-
-
Field Summary
Fields Modifier and Type Field Description static String
ARG_BODY_TYPE
static String
ARG_MAIL_BODY
static String
ARG_MAIL_FROM
static String
ARG_MAIL_SUBJECT
static String
ARG_MAIL_TO
static String
ARG_SMTP_HOST
static String
ARG_TEST
-
Fields inherited from class org.fugerit.java.tool.ToolHandlerHelper
ARG_EXTRA_JAR, EXIT_KO_DEFAULT, LOG_PARAM_LITERAL, logger
-
Fields inherited from interface org.fugerit.java.tool.ToolHandler
EXIT_OK
-
-
Constructor Summary
Constructors Constructor Description SendMail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
handleWorker(Properties params)
Handler worker method.-
Methods inherited from class org.fugerit.java.tool.ToolHandlerHelper
getClassLoader, getHelp, handle
-
-
-
-
Field Detail
-
ARG_SMTP_HOST
public static final String ARG_SMTP_HOST
- See Also:
- Constant Field Values
-
ARG_MAIL_TO
public static final String ARG_MAIL_TO
- See Also:
- Constant Field Values
-
ARG_MAIL_FROM
public static final String ARG_MAIL_FROM
- See Also:
- Constant Field Values
-
ARG_MAIL_SUBJECT
public static final String ARG_MAIL_SUBJECT
- See Also:
- Constant Field Values
-
ARG_MAIL_BODY
public static final String ARG_MAIL_BODY
- See Also:
- Constant Field Values
-
ARG_BODY_TYPE
public static final String ARG_BODY_TYPE
- See Also:
- Constant Field Values
-
ARG_TEST
public static final String ARG_TEST
- See Also:
- Constant Field Values
-
-
Method Detail
-
handleWorker
public int handleWorker(Properties params) throws RunToolException
Description copied from class:ToolHandlerHelper
Handler worker method.
- Specified by:
handleWorker
in classToolHandlerHelper
- Parameters:
params
- ths params for the tool- Returns:
- exit code (0 is all ok)
- Throws:
RunToolException
- issues if problems arise
-
-