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.AbstractConnector
This connector provides an email sending service.
- Author:
- Matthieu Chaffotte, Yanyan Liu, Baptiste Mesta
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe files to attach to the email.static final StringThe "bcc" recipient(s) email address(es).static final StringThe "cc" recipient(s) email address(es).static final StringCharset of the messagestatic final StringThe sender's email address.static final StringThe extra header fields of the email.static final StringIndicates whether the content of the email is in HTML format.static final StringThe message content of the email.static final StringThe password used for authentication.static final StringThe "Reply-to" recipient(s) email address(es).static final StringThe return-path email address.static final StringThe name or the IP address of the SMTP server.static final Stringstatic final StringIndicates whether the SMTP server uses an SSL support.static final StringIndicates whether the SMTP server uses a STARTTLS support.static final StringThe subject of the email.static final StringThe "to" recipient(s) email address(es).static final StringIndicates whether the SMTP server certificate should be always trustedstatic final StringThe user name used for authentication.Fields inherited from class org.bonitasoft.engine.connector.AbstractConnector
apiAccessor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidMethods inherited from class org.bonitasoft.engine.connector.AbstractConnector
connect, disconnect, execute, getAPIAccessor, getExecutionContext, getInputParameter, getInputParameter, getOutputParameters, setAPIAccessor, setExecutionContext, setInputParameters, setOutputParameter
-
Field Details
-
ATTACHMENTS
The files to attach to the email.- See Also:
-
HEADERS
The extra header fields of the email.- See Also:
-
CHARSET
Charset of the message- See Also:
-
MESSAGE
The message content of the email.- See Also:
-
HTML
Indicates whether the content of the email is in HTML format.- See Also:
-
SUBJECT
The subject of the email.- See Also:
-
BCC
The "bcc" recipient(s) email address(es).- See Also:
-
CC
The "cc" recipient(s) email address(es).- See Also:
-
TO
The "to" recipient(s) email address(es).- See Also:
-
REPLY_TO
The "Reply-to" recipient(s) email address(es).- See Also:
-
FROM
The sender's email address.- See Also:
-
RETURN_PATH
The return-path email address.- See Also:
-
PASSWORD
The password used for authentication.- See Also:
-
USER_NAME
The user name used for authentication.- See Also:
-
STARTTLS_SUPPORT
Indicates whether the SMTP server uses a STARTTLS support.- See Also:
-
SSL_SUPPORT
Indicates whether the SMTP server uses an SSL support.- See Also:
-
SMTP_PORT
- See Also:
-
SMTP_HOST
The name or the IP address of the SMTP server.- See Also:
-
TRUST_CERTIFICATE
Indicates whether the SMTP server certificate should be always trusted- See Also:
-
-
Constructor Details
-
EmailConnector
public EmailConnector()
-
-
Method Details
-
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
-