Introduction of the SMTP ProtocolΒΆ

Note

SMTP Protocol is only available on the AC500 CPUs with onboard Ethernet.

SMTP protocol allows a PLC to instruct a mail server in the network to send emails of user specified content to email accounts the SMTP server can reach (directly or via forwarding). The SMTP protocol is accompanied by the Function Block ETHx_SMTP_EMAIL_SEND within the AC500 Ethernet library. This Function Block replaces the previous ETH_SMTP_EMAIL_SEND Function Block of former CBP versions. Note: Input semantics have been changed.

Both Function Blocks allow users to transfer email content and data to the mail server via SMTP protocol implementation.

Please consider the following restrictions and constraints in the current AB Version:

  • SMTP implementation only covers client functionality (AC500 can not receive emails) Configuration of the SMTP Protocol (>= CBP 2.4).
  • Number of text lines in the email body is restricted to 20 lines with 255 characters each.
  • Number of files attached to an email is restricted to 10 files with a filename of 255 chars and a path of 255 chars.
  • SMTP implementation does not support secure connections to the SMTP server (like TLS or SSL).