With the integration of the “Mail Service SL” library, the prerequisite for sending mails with the PLC has been created. After appropriate programming of the user requirements and the provision of appropriate hardware and software in the periphery (router, mail program) this service is available.
Mail Service SL library
This library can send, receive and delete emails. An SMTP server is required for sending, and a POP3 server and mail account are required for receiving and deleting. An email can be sent to multiple recipients, with carbon copies and blind copies. Also, any type of file can be attached up to a size of 20 MB if the timeout has been adjusted to the internet speed. If the user specifies a folder, attachments of received e-mails will be stored in this folder. The POP3 server must support unique IDs in case of email deletion.
Simple Mail Transfer Protocol (SMTP)
SMTP is a communication protocol for the exchange of data (e-mails) in networks or in the internet. SMTP is primarily used for sending and forwarding e-mails. Other, specialized protocols (POP3/IMAP) are used to fetch e-mails.
Simple Mail Transfer Protocol Secure (SMTPS)
SMTPS is an independent further development of the SMTProtocol and authenticates the communication of the e-mail partners by additional encryption protocols (SSL/TSL). This happens before the message is even sent.
Application example
How to send e-mails via the SMTP protocol and how to create the technical requirements for this is described in detail in an ⮫ application example.