Configure TLSMode for connection security
masterThe TLSMode enum defines how the connection handles encryption:
.normal: Upgrades the connection to TLS if theSTARTLScommand is received; otherwise, sends mail without security..ignoreTLS: Sends mail over plaintext and ignoresSTARTTLScommands and TLS options. This may throw an error if the server requires TLS..requireTLS: Only sends mail after a successful initial TLS connection. The connection fails if TLS cannot be established. Note: When using this mode, you will likely need to adjust the port (e.g., to 465) depending on your server..requireSTARTTLS: Expects aSTARTTLScommand from the server and requires the connection to be upgraded. Throws an error if the server does not issueSTARTTLS.