The following figure shows the flow of sending an e-mail message consisting of the body and attachment.
FX5 CPU module
(ladder program)
(1) The FX5 CPU module (ladder program) executes the module function block (Mail_Send).
(2) The Ethernet module sends the e-mail to the SMTP server.
(3) The Ethernet module establishes a TLS/TCP session.
(4) The Ethernet module disconnects the TLS/TCP session.
(5) The module function block (Mail_Send) returns the result (Completed successfully or Completed with an error) to the FX5 CPU module (ladder program).