From 8ba12d54a982f834a0fdf5fe7a092cf98c40ca3b Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Fri, 27 Dec 2024 14:58:02 -0300 Subject: [PATCH] fix --- vlib/net/smtp/smtp.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/net/smtp/smtp.v b/vlib/net/smtp/smtp.v index 2d6a8d36080678..87ed6b288e4679 100644 --- a/vlib/net/smtp/smtp.v +++ b/vlib/net/smtp/smtp.v @@ -88,7 +88,7 @@ pub fn (mut c Client) reconnect() ! { conn := net.dial_tcp('${c.server}:${c.port}') or { return error('Connecting to server failed') } c.conn = conn - if c.ssl { + if c.ssl || c.encrypted { c.connect_ssl()! } else { c.reader = io.new_buffered_reader(reader: c.conn)