Send One E-mail

Operation Name

Send One E-mail

Function Overview

Send a mail to SMTP server.

Properties

For information about using variables, refer to "variables".
Basic settings
Item name Required / Optional Use of Variables Description Remarks
Name Required Not available Enter the name on the script canvas.  
Required settings
Item name Required / Optional Use of Variables Description Remarks
Destination Required Not available Select Global Resources.
Refer to "Global Resource Properties" to set up a global resource.
  • [Add]:
    Adds new global resource.
  • [Edit list]:
    Global resource settings can be edited with "Edit Resource list".
 
From Required Available Enter the email address of the sender.  
To/Cc/Bcc Required - Enter the email address of the destination.

Each column can be operated with the following buttons.
  • [Add]:
    Add a column.
  • [Up]:
    Move the order of the selected column upwards by one.
  • [Down]:
    Move the order of the selected column downwards by one.
  • [Delete]:
    Delete the column.
 
To/Cc/Bcc / Category Required Available Select the type of destination.
  • [TO]:(default)
  • [CC]:
  • [BCC]:
 
To/Cc/Bcc / Mail Address Required Available Enter your email address.  
Authentication
Item name Required / Optional Use of Variables Description Remarks
Authentication mode Required Not available Select the authentication mode when sending mail.
  • [None]:(default)
    No authentication.
  • [POP before SMTP]:
    Before sending authentication to POP3.
  • [SMTP AUTH (LOGIN)]:
    Use SMTP AUTH (LOGIN) to authenticate the system.
  • If [POP before SMTP] is selected, connection timeout for POP server is 15 seconds.
Hostname Required Available Enter POP mail server host name or the IP address.
  • Enabled when [Authentication mode] to [POP before SMTP] is selected.
Port number Required Available Enter the POP port number to access the mail server.
  • The default value is "110".
  • Enabled when [Authentication mode] to [POP before SMTP] is selected.
User name Required Available Enter a user name for SMTP AUTH or to access to POP mail server.
  • Enabled when [POP before SMTP] or [SMTP AUTH (LOGIN)] is selected in [Authentication mode].
Password Required Available Enter a password for SMTP AUTH or to access to POP mail server.
  • Enabled when [POP before SMTP] or [SMTP AUTH (LOGIN)] is selected in [Authentication mode].
SSL connection Optional Not available Select whether to make the SSL connection to POP mail server.
  • [Checked]:
    Make SSL connections.
  • [Not Checked]: (default)
    Do not make SSL connections.
  • Enabled when [POP before SMTP] is selected in [Authentication mode].
  • SSL/TLS is used for SSL connection.
  • If [Checked] is selected, the certificate of the POP3 server must be imported to the keystore which DataSpiderServista is referring to.
  • For information regarding how to import to the keystore, refer to "Import of certificate".
Property Action
Item name Description Remarks
Authentication test Use [User name] and [Password] to test a login to a given [Hostname].
  • Enabled when [POP before SMTP] or [SMTP AUTH (LOGIN)] is selected in [Authentication mode].
  • If the following happens, [Authentication test] is disabled.
    • [Hostname] or [Port number], [Username], [Password] have not been entered
    • [Hostname] or [Port number], [User name], [Password] are specified with variables
Message
Item name Required / Optional Use of Variables Description Remarks
Subject Optional Available Enter the subject.  
Message Optional Available Enter the text.  
Content-type Optional Available Select or enter the Content-Type.
  • [text/plain]:(default)
  • [text/html]:
  • If omitted, set "text/plain".Charset parameter [Encoding] set value.
Encoding Optional Available Select or enter type of encoding when sending mail.
  • [Japanese (JIS)]: (default)
  • [Japanese (Shift JIS)]:
  • [Japanese (EUC)]:
  • [US-ASCII]:
  • [ISO 8859-1]:
  • [UTF-8]:
  • [EUC-KR]:
Use only the canonical name supported by Java SE Runtime Environment 8 when specifying the encoding directly in the field.
Refer to "Supported Encodings"(http://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html) for details.
  • If omitted sends in "UTF-8".
Attachments
Item name Required / Optional Use of Variables Description Remarks
Attachments Optional - Specify the path of the attachment file.

Each column can be operated with the following buttons.
  • [Add]:
    Add a column.
  • [Up]:
    Move the order of the selected column upwards by one.
  • [Down]:
    Move the order of the selected column downwards by one.
  • [Delete]:
    Delete the column.
 
Attachments / File path Required Available Enter the prefix file path .
Reply
Item name Required / Optional Use of Variables Description Remarks
Reply-To Optional - Specify the email address to reply.

Each column can be operated with the following buttons.
  • [Add]:
    Add a column.
  • [Up]:
    Move the order of the selected column upwards by one.
  • [Down]:
    Move the order of the selected column downwards by one.
  • [Delete]:
    Delete the column.
 
Reply-To / Mail address Required Available Enter the email address to reply.  
Header
Item name Required / Optional Use of Variables Description Remarks
Header list Optional - Specifies a header to give when sending mail.  
Header list / Header Required Available Enter the key header to give when sending mail.
  • Double-byte key value is not supported.
Header list / Value Required Available Enter the value header to give when sending mail.
  • If the double-byte characters are included, the value is encoded according to RFC 2047 compliant encoding.
Comment
Item name Required / Optional Use of Variables Description Remarks
Comment Optional Not available You can write a short description of this adapter.
The description will be reflected in the specifications.
 

Schema

Input Schema

None.

Output Schema

None.

Transaction

Transaction is not supported.

PSP Usage

PSP is not supported.

Available component variables

Component variable name Description Remarks
count Returns the number of messages sent.
  • The value defaults to null.
message_category Stroes the category to which corresponding message code belongs to, when an error occurs.
  • The value defaults to null.
message_code Stores its corresponding message code of occured error.
  • The value defaults to null.
message_level Stores the severity of the corresponding message code of the occured error.
  • The value defaults to null.
error_type Returns the error type when error occurred.
  • The value defaults to null.
  • Error is represented in the format depicted below.
    Example:java.io.FileNotFoundException
  • The message may vary depending on the DataSpider Servista version.
error_message Return the error message when error occurred.
  • The value defaults to null.
  • The message may vary depending on the DataSpider Servista version.
error_trace Return trace information when error occurred.
  • The value defaults to null.
  • The message may vary depending on the DataSpider Servista version or the client application used.

Grant charset parameter to attached file setting

If you send text format attached file, default encoding of OS will be set to charset parameter of Content-Type.
By setting up the following property, you can stop granting charset parameter to attached file's Content-Type.

Key Location Description Remarks
mail.mime.setdefaulttextcharset $DATASPIDER_HOME/server/conf/
system.properties
  • [true]:
    Grants default charset parameter if you attach text format file.
  • [false]:
    Does not grant default charset parameter if you attach text format file.
  • Default value is"true", and if you omit, "true" will be set.

Specification Limits

Main exceptions

Exception Name Causes Solution
ResourceNotFoundException
Resource definition could not be found.Name:[]
[Destination] is not specified. Please specify [Destination] .
ResourceNotFoundException
Resource definition could not be found.Name: [<name of Global Resources>]
Resource definition selected in [Destination] is not found. Please check the global resource specified in [Destination]
InvalidPropertyConfigurationException
<Property name> is not specified.
[<Property name>] is not specified. Specify the [<Property name>] .
RecipientsNotFoundException [Destination] is wrong. Check the following.
  • [Destination] that is configured with one or more
  • [Destination / Type] correctness
  • [Send / mail address] is entered.
  • [Send / mail address] does not contain any multi-byte characters.
java.io.UnsupportedEncodingException Encoding set to [Encoding] is not supported. Please check the specified encoding in [Encoding] .
javax.mail.AuthenticationFailedException: [User name] or [Password] is incorrect. Check [User name] and [Password] .
javax.mail.MessagingException:
ConnectionException
[Hostname] failed to connect to the specified host. Check that you are not wrong about [Hostname], [Port number] . Check whether services are provided in the specified host specified in [Hostname].
javax.mail.MessagingException:
UnknownHostException
[Hostname] not found . Please check the host name specified with [Hostname].
javax.mail.SendFailedException
Failed to send message. Check [Send / mail address] .
javax.mail.SendFailedException
Invalid Addresses
Failed to send message. Check [Send / mail address] .
This exception can happen with a correct email address when the mail server returns an error .
com.sun.mail.smtp.SMTPSendFailedException Failed to send message. Please check the message and take appropriate measures.
javax.mail.MessagingException:
SSLHandshakeException
It occurs when selected [SSL/TLS] or [STARTTLS] in [SSL Connection] in global resource properties.The reason is that the server certificate registered in Java is different from the one that is used to SSL connection,so the validity cannot be verified. Check if the server certificate is registered in JAVA when connecting to SSL server. If registered,check if the server is the same as the one registered in JAVA and check if the server certificate has expired.