Send Email with Arduino - connection failed

Hello,
I’m really upset because I’ve been doing a residential alarm project for days and one of the parts of my project does not want to work.
It is a code that sends e-mails when the alarm is triggered.
The problem is that the serial, as soon as I try to send the email, indicates a connection error.
The code I’m using as a base is this:

Please, help me!!! :frowning: :frowning:

teste_de_email.ino (3.21 KB)

Did you VERIFY that you can send email, using a PC before trying to make the Arduino send the email?

char server[] = "http://smtps.bol.com.br/";

A server name NEVER starts with http://.