8.2.5 Send mail
- Organization of this subsection
(1) Overview of the function
This item sends emails to the specified email addresses.
(2) List of settings
Name |
Required |
Format |
Can specify inherited information? |
---|---|---|---|
To: |
Yes |
Half-width alphanumeric characters and symbols (1 to 256 bytes) |
Yes |
Cc: |
No |
Half-width alphanumeric characters and symbols (0 to 256 bytes) |
Yes |
Subject |
No |
String (0 to 256 bytes) |
Yes |
Message text |
No |
String (0 to 512 bytes) |
Yes |
Attached file 1 |
No |
String (0 to 255 bytes) |
Yes |
Attached file 2 |
No |
String (0 to 255 bytes) |
Yes |
Attached file 3 |
No |
String (0 to 255 bytes) |
Yes |
Attached file 4 |
No |
String (0 to 255 bytes) |
Yes |
Attached file 5 |
No |
String (0 to 255 bytes) |
Yes |
Attached file 6 |
No |
String (0 to 255 bytes) |
Yes |
Attached file 7 |
No |
String (0 to 255 bytes) |
Yes |
Attached file 8 |
No |
String (0 to 255 bytes) |
Yes |
(3) Settings
- To:
-
Specify the To: address of the email.
- Cc:
-
Specify the CC: address of the email.
- Subject
-
Specify the subject of the email. If omitted, set to "(no subject)".
- Message text
-
Write message text of the email.
Do not enter only line breaks and/or half-width spaces.
(4) Return values
Value |
Description |
---|---|
-1 |
Forced termination. |
0 |
Send email succeeded. |
14 |
No attached file exists. |
58 |
An incorrect value was specified.
|
71 |
Failed to access the mail server.
|
72 |
Access was denied by the mail server.
|
73 |
Name resolution failed for the host name of the mail server.
|
120 |
The size of the attached file is equal to or larger than 10 MB. |
Others |
Cannot access the system settings file (config.xml), insufficient resources, or high communication load.
|
(5) Example
To: |
XXX@YYY.com |
Cc: |
ZZZ@WWW.com |
Subject |
Regular notification |
Message text |
This is a regular notification message for today. |
(6) Settings of send mail
Before using the Send mail item, you need to create profiles used by the send mail function. For details on how to create profiles, see 2.3.1 Configurations for the Send mail item.
(7) Error handling procedures
For details on error handling procedures, see the section describing return values. If the return value does not suggest any solutions, check the standard error output or error messages output to log files, and then take actions accordingly.