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 StringARG_BODY_TYPEstatic StringARG_MAIL_BODYstatic StringARG_MAIL_FROMstatic StringARG_MAIL_SUBJECTstatic StringARG_MAIL_TOstatic StringARG_SMTP_HOST-
Fields inherited from class org.fugerit.java.tool.ToolHandlerHelper
ARG_EXTRA_JAR, EXIT_KO_DEFAULT, 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 inthandleWorker(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
-
-
Method Detail
-
handleWorker
public int handleWorker(Properties params) throws Exception
Description copied from class:ToolHandlerHelperHandler worker method.
- Specified by:
handleWorkerin classToolHandlerHelper- Parameters:
params- ths params for the tool- Returns:
- exit code (0 is all ok)
- Throws:
Exception- issues if problems arise
-
-