Uses TLS to communicate with the SMTP server if configured

[#73644290]