USER MANUAL – Z-TWS4/Z-PASS2-S/S6001-RTU
193
19.1.18
SEND_MAIL
The SEND_MAIL FB sends an e-mail, by means of the SMTP/SMTPS protocol.
When first called, the FB runs a process which starts sending the e-mail;
on subsequent calls, it only checks if the process has finished its job.
The FB has the following input parameters:
- SMTP_HOST : IP address or host name of the SMTP/SMTPS server
- SMTP_PORT : TCP port for the SMTP/SMTPS protocol (normally: 25, for SMTP;
465, for SMTPS)
- CRYPTO_ON : if cryptography (SSL) shall be used (FALSE -> SMTP, TRUE ->
SMTPS)
(CRYPTO_ON=TRUE is available only for Z-TWS4/Z-PASS2-S)
- AUTH_ON : if authentication shall be executed
- AUTH_USERNAME : username for authentication
- AUTH_PASSWORD : password for authentication
- FROM : e-mail sender
- TO : e-mail recipient
more than one recipient can be specified, using the ','
character as separator
- SUBJECT : e-mail subject
- TEXT : e-mail text
- ATTACH_FILE : name of the file (with path) to be attached to the e-mail (it
can be empty)
- @ENABLE : TRUE -> FB is executed
FALSE -> FB is skipped
The FB has the following output parameter:
- RESULT : -2, when called with ENABLE=FALSE
-1, in case of any failure
0, if the process is still running
1, if the process has successfully finished.
Summary of Contents for S6001-RTU
Page 35: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 35 Then import the Library menu Tools Import...
Page 68: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 68...
Page 76: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 76...
Page 86: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 86...
Page 87: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 87...
Page 121: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 121...
Page 133: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 133...
Page 162: ...USER MANUAL Z TWS4 Z PASS2 S S6001 RTU 162 Select the mbus_shm csv file...