{[ "type": "text", "label": "", "name": "name", "value": "$name$", "required": 1 ]}
{[ "type": "checkbox", "label": "", "name": "pec", "value": "$pec$" ]}
{[ "type": "checkbox", "label": "", "name": "main", "value": "$main$", "help": "" ]}
{[ "type": "text", "label": "", "name": "from_name", "value": "$from_name$" ]}
{[ "type": "email", "label": "", "name": "from_address", "value": "$from_address$", "required": 1 ]}
{[ "type": "text", "label": "", "name": "server", "required": 1, "value": "$server$" ]}
{[ "type": "number", "label": "", "name": "port", "required": 1, "class": "text-center", "decimals":"0", "max-value":"65535", "value": "$port$" ]}
{[ "type": "select", "label": "", "name": "encryption", "values": "list=\"\": \"\", \"tls\": \"TLS\", \"ssl\": \"SSL\"", "value": "$encryption$" ]}
{[ "type": "text", "label": "", "name": "username", "value": "$username$" ]}
{[ "type": "password", "label": "", "name": "password", "value": "$password$" ]}
{[ "type": "textarea", "label": "", "name": "note", "value": "$note$" ]}
fetchArray('SELECT `id`, `name` FROM `zz_emails` WHERE `id_smtp` = '.prepare($id_record)); if (!empty($elementi)) { echo '

'.tr('Template email collegati: _NUM_', [ '_NUM_' => count($elementi) ]).'

'; } else { echo ' '.tr('Elimina').' '; }