Send One E-mail

Operation name

Send One E-mail

Function overview

Sends an email to Gmail SMTP server.

Operation environment

Google Workspace (formerly known as G Suite Basic)

Properties

= Remarks =

For details on use of variables, refer to Variables.

Basic settings

Item name

Required/Optional

Use of variables

Description

Remarks

Name

Required

Not available

Enter a name that is used on the script canvas.

 

Required settings

Item name

Required/Optional

Use of variables

Description

Remarks

Connection

Required

Not available

Select a connection resource.

Add

A new connection resource can be added.

Edit list

Connection resource settings can be edited in > HULFT INTEGRATE > Connections.

 

From

Required

Available

Enter the email address of the sender.

  • You can only use the email address registered as the "From address" in the Gmail settings of the user.

    If the email address you specified isn't registered, the default email address is used as the source email address.

To/Cc/Bcc

Required

-

Enter the email address of the destination.

Each row can be operated with the following buttons:

Up

Moves the selected row upward by one row.

Down

Moves the selected row downward by one row.

Add

Adds a row.

Delete

Deletes the row.

 

To/Cc/Bcc / Category

Required

Available

Select the type of destination.

TO

(Default)

CC
BCC

 

To/Cc/Bcc / Mail Address

Required

Available

Enter the email address.

 

Authentication

Item name

Required/Optional

Use of variables

Description

Remarks

Authentication mode

Required

Not available

Select the authentication mode when sending an email.

OAuth 2.0 AUTH

(Default)

Perform OAuth 2.0 authentication.

SMTP AUTH (LOGIN)

Use SMTP AUTH (LOGIN) to authenticate the system.

User name

Required

Available

Enter a user name to perform SMTP authentication or a user name to perform OAuth 2.0 authentication.

  • Enter the value in either of the following formats: "<Google Workspace user name>" or "<Google Workspace user name>@<Google Workspace domain name>".

Password

Required

Available

Enter a password for SMTP authentication.

  • Enabled when SMTP AUTH (LOGIN) is selected in Authentication mode.

Authentication (Gmail OAuth 2.0)

Required

Not available

Select a connection resource to use for authentication.

Add

A new connection resource can be added.

Edit list

Connection resource settings can be edited in > HULFT INTEGRATE > Connections.

  • Enabled when OAuth 2.0 AUTH is selected in Authentication mode.

Property actions

Item name

Description

Remarks

Authentication test

Perform an authentication test by using the selected Authentication mode.

  • In the following cases, Authentication test is disabled.

    • When SMTP AUTH (LOGIN) is selected in Authentication mode.

      • User name or Password isn't entered.

      • A script variable is specified in User name or Password.

    • When OAuth 2.0 AUTH is selected in Authentication mode

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, the message is sent as "text/plain". The value of Encoding is set for the charset parameter.

Encoding

Optional

Available

Select or enter type of encoding when sending an email.

Japanese (JIS)

(Default)

Japanese (Shift JIS)
Japanese (EUC)
US-ASCII
ISO 8859-1
UTF-8
EUC-KR

When you enter encoding, specify one of the encodings supported in Java SE Runtime Environment 8.

= Remarks =

For details, refer to "Supported Encodings" (http://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html).

  • If omitted, "UTF-8" is used when sending.

Attachments

Item name

Required/Optional

Use of variables

Description

Remarks

Attachments

Optional

-

Specify attachment file paths.

Each row can be operated with the following buttons:

Up

Moves the selected row upward by one row.

Down

Moves the selected row downward by one row.

Add

Adds a row.

Delete

Deletes the row.

 

Attachments/File path

Required

Available

Enter the attachment file path.

Note

Reply

Item name

Required/Optional

Use of variables

Description

Remarks

Reply-To

Optional

-

Specify the destination email address of a reply.

Each row can be operated with the following buttons:

Up

Moves the selected row upward by one row.

Down

Moves the selected row downward by one row.

Add

Adds a row.

Delete

Deletes the row.

 

Reply-To/Mail address

Required

Available

Enter the email address.

 

Header

Item name

Required/Optional

Use of variables

Description

Remarks

Header list

Optional

-

Specify a header to give when sending an email.

 

Header list/Header

Required

Available

Enter the key header to give when sending an email.

  • Multibyte key values aren't supported.

Header list/Value

Required

Available

Enter the header value to give when sending an email.

  • If multibyte 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 connector.

 

Schemas

Input schema

None.

Output schema

None.

Transaction

Transaction isn't supported.

Parallel Stream Processing

PSP isn't supported.

Available component variables

Component variable name

Description

Remarks

count

The number of sent emails is stored.

  • The default value is null.

message_category

When an error occurs, the category of the message code corresponding to the error is stored.

  • The default value is null.

message_code

When an error occurs, the code of the message code corresponding to the error is stored.

  • The default value is null.

message_level

When an error occurs, the severity of the message code corresponding to the error is stored.

  • The default value is null.

error_type

When an error occurs, the error type is stored.

  • The default value is null.

  • The format of the error type is as follows.

    Example: java.io.FileNotFoundException

error_message

When an error occurs, the error message is stored.

  • The default value is null.

error_trace

When an error occurs, the trace information for the error is stored.

  • The default value is null.

Text encoding methods for attached files

UTF-8 encoding is set for the charset parameter of Content-Type. It can't be changed.

Message codes, exception messages, and limitations

Connector

Message code

Exception message

Limitations

Messages and limitations of the Gmail connector

check

check

check

Notes

  • SSL is used in communication between Gmail SMTP server and this connector.