Instance Attributes (Instance #13, SMTP Server)
This instance holds the SMTP server URL.
# | Name | Access | Data Type | Description |
---|---|---|---|---|
1 | Name | Get | Array of CHAR | “SMTP server” (Multilingual, see page Multilingual Strings) |
2 | Data type | Get | UINT8 | 07h (= CHAR) |
3 | Number of elements | Get | UINT8 | 40h (64 elements) |
4 | Descriptor | Get | UINT8 | 07h (read/write/shared access) |
5 | Value | Get/Set | Array of CHAR | SMTP server URL, 64 characters in the format [<protocol>://]<server address>[:<port>]. See SMTP Server URL format for URL format options. If read, the actual value will be received. If written, the written value is reflected in attribute #6 until a reset. |
6 | Configured Value | Get | Array of CHAR | Holds the configured value, which will be written to attribute #5 after the module has been reset. SMTP server URL, 64 characters. |
Changes are valid after reset.
SMTP Server URL format
The URL of the SMTP server has the following components:
Protocol | Optional. If not specified, non-encrypted SMTP will be used. Specifies the protocol to use when communicating with the server. The available protocols are:
|
Server address | Mandatory. Sets the IP address or host name of the SMTP server. If host name is used, a valid DNS server must also be configured. |
Port | Optional. If not specified, the SMTP default port 25 will be used. Specifies the port to connect to for the SMTP server. |
These examples are in valid SMTP server URL format:
smtp.server.com | Connects to smtp.server.com using SMTP on port 25. |
smtp://smtp.server.com:1025 | Connects to smtp.server.com using SMTP on port 1025. |
smtps://smtp.server.com:465 | Connects to smtp.server.com using SMTPS (SMTP over TLS) on port 465. |