|
|
Topic: P296 |
Simple Mail Transfer Protocol (SMTP) |
|
Simple Mail Transfer Protocol (SMTP) is an Internet standard for sending electronic mail (email). Although electronic mail servers and other mail transfer agents use SMTP to send and receive mail messages, user-level client mail applications typically use SMTP only for sending messages to a mail server.
In order to send an email from the PLC, the Send Email (EMAL) instruction requires that you have an e-mail server widget defined and configured. The widget contains the necessary network communication settings for an e-mail server external to the PLC. The external mail server can be from an e-mail provider (such as Gmail) or can be set up inside an organization (such MS Exchange). The programming software provides preconfigured templates for 4 common e-mail providers. It also provides a generic template that can specify any desired e-mail server.
Note: Maximum of 4 mail accounts allowed.
Note: Using a tag in the IP address field is only available with P2-622 and new (next-generation) CPUs.
Note: DNS service must be configured in the CPU Ethernet Ports tab in Hardware configuration or through Choose CPU "CPU Connections" window.
Note: Do not enter an IP address in this field.
Note: Ensure CPU date & time is within 2 weeks of current if using a CA certificate in your mail account configuration or you may receive a "TLS handshake" error.
- No CA Certificate: The Root CA certificate is not used to validate the mail server identity as part of establishing the encrypted connection.
- Default CA Certificate: The Root CA certificate is used to validate the mail server identity (server certificates) as part of establishing the encrypted connection. (Only applies to preconfigured widgets)
- User CA Certificate:
- Import Certificate: Browse for a Root CA certificate to be used with the configured mail server. This will be saved with the project file and downloaded to the CPU to be used when connecting to the mail server.
Note: Only Root Certificates with .cer extensions accepted.
- User Name: No character limit for static text. If using a string tag, there is a 128-character limit.
- User Password:
- Password can be static text (20-character limit).
- P2-622 and newer CPU’s: If the PW radio button is selected, enter static text (128-character limit), or if the tag radio button is selected a String tag is required in this field (128-character) limit.
Note: Using tags in the User Name and User Password fields is only available with P2-622 and newer (next-generation) CPUs.