Package org.bonitasoft.connectors.email
Class EmailConnector
- java.lang.Object
-
- org.bonitasoft.engine.connector.AbstractConnector
-
- org.bonitasoft.connectors.email.EmailConnector
-
- All Implemented Interfaces:
org.bonitasoft.engine.connector.Connector
public class EmailConnector extends org.bonitasoft.engine.connector.AbstractConnectorThis connector provides an email sending service.- Author:
- Matthieu Chaffotte, Yanyan Liu, Baptiste Mesta
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTACHMENTSThe files to attach to the email.static StringBCCThe "bcc" recipient(s) email address(es).static StringCCThe "cc" recipient(s) email address(es).static StringCHARSETCharset of the messagestatic StringFROMThe sender's email address.static StringHEADERSThe extra header fields of the email.static StringHTMLIndicates whether the content of the email is in HTML format.static StringMESSAGEThe message content of the email.static StringPASSWORDThe password used for authentication.static StringREPLY_TOThe "Reply-to" recipient(s) email address(es).static StringRETURN_PATHThe return-path email address.static StringSMTP_HOSTThe name or the IP address of the SMTP server.static StringSMTP_PORTstatic StringSSL_SUPPORTIndicates whether the SMTP server uses an SSL support.static StringSTARTTLS_SUPPORTIndicates whether the SMTP server uses a STARTTLS support.static StringSUBJECTThe subject of the email.static StringTOThe "to" recipient(s) email address(es).static StringTRUST_CERTIFICATEIndicates whether the SMTP server certificate should be always trustedstatic StringUSER_NAMEThe user name used for authentication.
-
Constructor Summary
Constructors Constructor Description EmailConnector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecuteBusinessLogic()voidvalidateInputParameters()
-
-
-
Field Detail
-
ATTACHMENTS
public static final String ATTACHMENTS
The files to attach to the email.- See Also:
- Constant Field Values
-
HEADERS
public static final String HEADERS
The extra header fields of the email.- See Also:
- Constant Field Values
-
CHARSET
public static final String CHARSET
Charset of the message- See Also:
- Constant Field Values
-
MESSAGE
public static final String MESSAGE
The message content of the email.- See Also:
- Constant Field Values
-
HTML
public static final String HTML
Indicates whether the content of the email is in HTML format.- See Also:
- Constant Field Values
-
SUBJECT
public static final String SUBJECT
The subject of the email.- See Also:
- Constant Field Values
-
BCC
public static final String BCC
The "bcc" recipient(s) email address(es).- See Also:
- Constant Field Values
-
CC
public static final String CC
The "cc" recipient(s) email address(es).- See Also:
- Constant Field Values
-
TO
public static final String TO
The "to" recipient(s) email address(es).- See Also:
- Constant Field Values
-
REPLY_TO
public static final String REPLY_TO
The "Reply-to" recipient(s) email address(es).- See Also:
- Constant Field Values
-
FROM
public static final String FROM
The sender's email address.- See Also:
- Constant Field Values
-
RETURN_PATH
public static final String RETURN_PATH
The return-path email address.- See Also:
- Constant Field Values
-
PASSWORD
public static final String PASSWORD
The password used for authentication.- See Also:
- Constant Field Values
-
USER_NAME
public static final String USER_NAME
The user name used for authentication.- See Also:
- Constant Field Values
-
STARTTLS_SUPPORT
public static final String STARTTLS_SUPPORT
Indicates whether the SMTP server uses a STARTTLS support.- See Also:
- Constant Field Values
-
SSL_SUPPORT
public static final String SSL_SUPPORT
Indicates whether the SMTP server uses an SSL support.- See Also:
- Constant Field Values
-
SMTP_PORT
public static final String SMTP_PORT
- See Also:
- Constant Field Values
-
SMTP_HOST
public static final String SMTP_HOST
The name or the IP address of the SMTP server.- See Also:
- Constant Field Values
-
TRUST_CERTIFICATE
public static final String TRUST_CERTIFICATE
Indicates whether the SMTP server certificate should be always trusted- See Also:
- Constant Field Values
-
-
Method Detail
-
validateInputParameters
public void validateInputParameters() throws org.bonitasoft.engine.connector.ConnectorValidationException- Throws:
org.bonitasoft.engine.connector.ConnectorValidationException
-
executeBusinessLogic
protected void executeBusinessLogic() throws org.bonitasoft.engine.connector.ConnectorException- Specified by:
executeBusinessLogicin classorg.bonitasoft.engine.connector.AbstractConnector- Throws:
org.bonitasoft.engine.connector.ConnectorException
-
-