Problem sending email with the sc_mail_send macro

I make the example that has scriptcase and I also check the internet, on networks and YouTube videos and they have exactly the same thing, but it is generating this error.

//Definición de variables para uso en la macro.
$mail_smtp_server = ‘smtp.gmail. com’; // Servidor SMTP
$mail_smtp_user = ‘mar7@gmail. com’; // usuario de acceso SMTP
$mail_smtp_pass = '
***’; // Contraseña para el usuario SMTP ingresado arriba
$mail_from = ‘mar7@gmail. com’; // Correo electrónico de origen del mensaje
$mail_to = 'mar
1@gmail. com’; // Correo electrónico del destinatario del mensaje
$mail_subject = ‘Asunto’; // Asunto del email
$mail_message = ‘Cuerpo del correo electrónico’; // Cuerpo del correo electronico
$mail_format = ‘T’; // Formato del cuerpo del correo electrónico: T (solo texto) o H (para texto y HTML)
$mail_port = ‘465’; // Puerto del servidor de envío
$mail_copies = ‘’;
$mail_tp_copies = ‘’;
$mail_tp_connection = ‘S’; // Uso o no de conexión segura: Y (Conexión segura) o N (Conexión insegura)
//$mail_attachments = ‘’ // Directorio del archivo que se enviará como archivo adjunto

//Macro with variables
sc_mail_send($mail_smtp_server,
$mail_smtp_user,
$mail_smtp_pass,
$mail_from,
$mail_to,
$mail_subject,
$mail_message,
$mail_copies,
$mail_tp_copies,
$mail_format,
$mail_port,
$mail_tp_connection);
// $mail_attachments);

if({sc_mail_ok}){
sc_alert(‘Se envio {sc_mail_ok} emails con Exito’);
}else
{
sc_error_message({sc_mail_error});
}

This error appears:

The email and password of the sender have already been checked and they are fine.

Dont try in test environment, try in your production envieonment